Hi, What is the necessary code to return a recordset from a single text box with more than one keyword in it (like most search engines do)? Thanks
try looking into MySQL FULLTEXT search.
Thanks. By the look of it, this is all in the MySql. Is there any PHP necessary to help this along?
Or you could do this:
<?php $searchterm = 'more than one word'; $sql = "SELECT * FROM table WHERE field REGEXP '".str_replace(' ','|',$searchterm)."'"; /* Then go on to execute the query... */ ?>
mikesgt2,
It works for me, but only when used with just a single mysql table column. Can it be modified to work with more than one column at once?
Richie.