Friday, December 16, 2011

how to use mysql_num_rows example

$qry = mysql_query(" SELECT * FROM abc WHERE something = 'something' ")or die(mysql_error());
$num = mysql_num_rows($qry);
if($num = 0)
{
// run code here
}
    else
    {
    // run code here
    }

No comments:

Post a Comment