I have a query which perform fine, but the problem is somehow its gives me the warning when no data match from database.
$count = mysql_num_rows($qry); //warning here
I can use @
to hide the error, but this is not good programming as far i know, so how can i hide the warning from the output?
The Warning: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in [somepage.php] on line [11]
$count = @mysql_num_rows($qry); //No warning
So i know there will be the ways to hide the warning, but i don't know. please help me on this.