View Full Version : Search Script
ek-design
May 25th, 2008, 02:54 PM
I was wanting to know if someone could help me understand how I can implement a search box on my website. Maybe give me a link for a script or just fyi.
Thanks!
kdd
May 25th, 2008, 07:35 PM
An inputbox submits the input to some file. You $_GET it or $_POST it, and then run a query for MySQL db. The query would be something like:
'SELECT * FROM tbl WHERE MATCH(columnName) AGAINST ("' . $givenInput . '*" IN BOOLEAN MODE)';
I can't really help, because you left out a lot of details, like what server-side language you're using, what db you're using, etc.
ahmednuaman
May 27th, 2008, 01:20 PM
Creating a custom site search is quite complex, I'd recommend using Google's site search: http://www.askdavetaylor.com/how_can_i_add_a_google_search_box_to_my_web_site.h tml
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.