Showing posts with label mysql_num_rows. Show all posts
Showing posts with label mysql_num_rows. Show all posts

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
    }