abragj 0 Posted December 6, 2012 Report 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... Quote Link to post Share on other sites
justsomeguy 1,135 Posted December 6, 2012 Report 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. Quote Link to post Share on other sites
baragan 4 Posted December 11, 2012 Report 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 Quote Link to post Share on other sites
justsomeguy 1,135 Posted December 11, 2012 Report 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. Quote Link to post Share on other sites
baragan 4 Posted December 11, 2012 Report Share Posted December 11, 2012 so for a search function i have to use both? Quote Link to post Share on other sites
justsomeguy 1,135 Posted December 12, 2012 Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.