I have moved one of my sites to a new server and now the following returns everything in the database regardless of what the user picks as their search criteria. It worked fine on the old server. Don't know if the problem is a different version of php... thus different syntax? (Obviously the code below is just a piece, but I think the problem is in this part.)
if ($keyword == "")
{$keyword = '%';}
if ($city == "")
{$city = '%';}
if ($category == "")
{$category = '%';}
$result = mysql_query("SELECT * FROM mibest
WHERE SearchWords LIKE '%$keyword%'
AND city LIKE '$city%'
AND category LIKE '$category%' ORDER BY title
");
if ($row = mysql_fetch_array($result)) {