|
|
How to check result is empty or not in php - PHP
|
Views : 266
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Here the code to check the number of rows in a result and to check whether the result set is empty or not
$user_res=mysql_query($query);
$rows=mysql_num_rows($user_res);//Used to find no.of rows in a resultset
if($rows==0){
echo "Resultset is empty";
} |
|
By Vinoth, On - 2010-02-05 |
|
|
|