abragj Posted December 6, 2012 Share Posted December 6, 2012 How do I make a box for people to search my webpages? What code does that? Is it difficult to do?I'm looking for one just like top of this forum. Please advise... Link to comment Share on other sites More sharing options...
justsomeguy Posted December 6, 2012 Share Posted December 6, 2012 The box itself is a regular HTML form. The code to actually find what people type in is more complex depending on what you're searching through, such as a database or set of files. Link to comment Share on other sites More sharing options...
baragan Posted December 11, 2012 Share Posted December 11, 2012 i wanted to ask the same too thanks abragj for asking first if i may ask justsomeguy, i was thinking about searching the whole be it articles database using the mysql LIKE comparison then returning the results, is there any other better way? i have heard about the FULLTEXT search but i have not yet read about it thoroughly to understand what it was talking about. thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted December 11, 2012 Share Posted December 11, 2012 Using LIKE gives you a keyword search. A fulltext search includes additional options, like natural language and query expansion that you can read about. Link to comment Share on other sites More sharing options...
baragan Posted December 11, 2012 Share Posted December 11, 2012 so for a search function i have to use both? Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2012 Share Posted December 12, 2012 You don't have to do anything, you should look into your options and figure out what you want your site to do. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now