Checking for blank queries
Posted: Tue Jul 12, 2005 4:54 pm
Quick question
How do I check the results of a query to see if it returned no results?
How do I check the results of a query to see if it returned no results?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
if(!$row = mysql_fetch_assoc($result))
//
$numrows = mysql_num_rows($result)