Being a complete non programmer, i thought it would be a good idea to help others like me who have no programming knowledge but want to develop web based applications. Additionally i wanted to be able to access all these for my own repetitive use.
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