Added: Feb 22, 2002
Snippet uploaded by: snippet
Written By: snippet
Demo: Sorry, no demo
this little script will search a database for the searched words. the advantage is that if the user enters more than one work seperated by spaces, it will break them apart at the space and search for each individual one.
$search = "your text here";
$search_words = explode(' ', $search);
$result = mysql_query ("SELECT * FROM table WHERE $category LIKE '%$search_words%' AND $category LIKE '%$search_words%' AND $category LIKE '%$search_words%'");
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.