How can I test if a MySQL query has returned an empty array? This code always says something is returned even if when I then extract each row from $result there is no data in the array.
- Andy
___________________________________________________________________
If a man speaks in a forest and there are no women around to hear him - will he still be wrong?
Code:
$result = mysql_query($query, $conn);
if (!empty($result)) echo "Query returned something";
- Andy
___________________________________________________________________
If a man speaks in a forest and there are no women around to hear him - will he still be wrong?