Snippet details
ID: 88
Viewed: 2655
Added: 2002-02-22
Version:
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.
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: snippet
<!---Head--->
none
<!---Body--->
<?php
$search = "your text here";
$search_words = explode(' ', $search);
$result = mysql_query ("SELECT * FROM table WHERE $category LIKE '%$search_words[0]%' AND $category LIKE '%$search_words[1]%' AND $category LIKE '%$search_words[2]%'");
?>
No Reviews to show
