BTW what error are you getting? I think its because of your ORDER BY clause, you can't use OR in it. Try
Code:
$sql = "SELECT * FROM tbl WHERE name LIKE '%".$searchword."%' AND city LIKE '%".$searchword."%' ORDER BY name, city DESC LIMIT 0, 25";
Also does the searchword HAVE to appear in both fields or is it either/or or both If thats the case you need to change the AND to a OR
Code:
$sql = "SELECT * FROM tbl WHERE name LIKE '%".$searchword."%' OR city LIKE '%".$searchword."%' ORDER BY name, city DESC LIMIT 0, 25";
Bookmarks