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."); } Link to comment https://forums.phpfreaks.com/topic/178333-need-help-in-mysql_num_rows/ 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' Link to comment https://forums.phpfreaks.com/topic/178333-need-help-in-mysql_num_rows/#findComment-940330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.