how do you fund out if a mysql resource is empty?
| From: | Haluk Karamete | Date: | Fri, 13 Jan 2012 20:01:15 +0000 |
| Subject: | how do you fund out if a mysql resource is empty? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-316292@lists.php.net to get a copy of this message | ||
$result = mysql_query($sql,$link) or die(mysql_error());
how do you find out if $sql returned any recordsets?
is there a fast/super efficient way of finding this out... something
along the lines of is_empty($result) type thing?