I am trying to check if my query returned any row of info.
I tried using the empty() function - fail.
I guess this is because my $result isnt a empty variable- it contains an empty query.
I tried to use the mysql_num_rows()==0 function - also no good.
This is because it is possible that my query will return only one row of info (and it does) which will cause the above function to return 0.
I did try:
$result = mysql_fetch_array($result)
if ( mysql_num_rows($result)==0 && $result = ' ')
That seemed to worke but it doesn't seem right to me because it is possible to have an empty block of info, And this condition won't be good for that.
So how do you check if the query is empty?