Re: [PHP] how do you fund out if a mysql resource is empty?

2012-01-13 Thread Stuart Dallas
On 13 Jan 2012, at 20:01, Haluk Karamete wrote: > $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? if (mys

[PHP] how do you fund out if a mysql resource is empty?

2012-01-13 Thread Haluk Karamete
$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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,