need help in mysql_num_rows()

Posted on 16th Feb 2014 by admin

please tell me what i am doing wrong in this query. it displays this error

Code: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:wampwwwdynamicquiz2.php on line 77
my query is
Code: $namecheck = mysql_query("select * from cv where name = '$name',apply='$apply' and email='$email'");
$countname = mysql_num_rows($namecheck);

if($countname != 0)
{
die("You have already applied for this vacancy.");
}

Other forums