I have a search function where I want to know if any values have been returned or not.
$result = mysql_query("SELECT * FROM products WHERE SubProduct='".$searchtext."' ORDER BY SubProduct");
What can I use to determine if $result has any values or not?
Also, how can I modify that query so that it has wildcards either side of searchtext?