need help in mysql_num_rows()


Posted on 16th Feb 2014 07:03 pm 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.");
}

No comments posted yet

Your Answer:

Login to answer
55 Like 39 Dislike
Previous forums Next forums
Other forums

ECC6 - Single sign-on
We are in the process of upgrading to ECC 6 which will support single sign on with user passwords al

Display data returned from Ajaxservices!!
I have a question about displaying results using ajax. I have part of the code below.
$.ajax({

Return X values where an ID number doesnt matter
Well as for subject heading, thats the best i could think of.

Currently im having a problem w

I didnt code this but I need help with it
I'm sorry. i'm not a coder. I have this script for forcing download and previewing mp3. The guy that

Changing files over
Just thought I'd start with the new forums looking really nice .

Ok basically I've made this

Product categories for registration
Dear all,

We are going live with the Supplier registered next week. At standard, the 'sel

Request-URI Too Large
I have created a simple submit form for a mysql database that puts a piece of code into database.<

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

md5 is it unique
I know this is most likely one of many simple questions that can be found semi easily. But I'm press

Displaying a clickable playername
I am going wrong somewhere with the mysql_query, can someone please put me straight?

$playern

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash