• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I create a simple site search?

#2
[eluser]mddd[/eluser]
Of course it is possible. But the solution depens very much on what kinds of information you are storing in the site. You'll have to create a query (or multiple queries) that look for the specified word in all the relevant tables and fields. And then, you'll probably want to format the results in different formats. For instance, if information is found in a news post, you'll want to show some text from that post and provide a link to it; if information is found in the list of branches for your company, you'll show the branche address in the search results..

So: first think of which tables and fields are relevant; search in them; present the results in a logical manner.


Messages In This Thread
How do I create a simple site search? - by El Forum - 06-09-2010, 07:15 AM
How do I create a simple site search? - by El Forum - 06-09-2010, 09:00 AM
How do I create a simple site search? - by El Forum - 06-09-2010, 09:57 AM
How do I create a simple site search? - by El Forum - 06-10-2010, 10:16 AM
How do I create a simple site search? - by El Forum - 06-10-2010, 10:28 AM
How do I create a simple site search? - by El Forum - 06-24-2010, 07:07 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.