Quick question
How do I check the results of a query to see if it returned no results?
Checking for blank queries
Moderator: General Moderators
-
AlbinoJellyfish
- Forum Commoner
- Posts: 76
- Joined: Sun Apr 04, 2004 7:39 pm
couple ways:
Code: Select all
if(!$row = mysql_fetch_assoc($result))
//
$numrows = mysql_num_rows($result)