doforumda Posted October 20, 2009 Share Posted October 20, 2009 please tell me what i am doing wrong in this query. it displays this error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\wamp\www\dynamic\quiz2.php on line 77 my query is $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."); } Quote Link to comment Share on other sites More sharing options...
trq Posted October 20, 2009 Share Posted October 20, 2009 SELECT * FROM cv WHERE name = '$name' AND apply='$apply' AND email='$email' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.