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

user validation always displaying invalid ? please help
Hello,

I have 2 accounts and there is a field in mysql called validated it can be either &quo

Help please - How to validate from 2 possible answers
Hi

I hope somebody can help me with what will probably be really simple, I'm pulling my hair

Little problem with form insertion in MySQL, Please help!!!
Hi!,

I'm a little bit new with php and I have a little issue here. I created a webform to ins

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

How to add an image/C++ OpenGL?
Hi,

I have been trying to look online for this and, so far, I haven't found anything usef

Read from forum
Haven't written anything forever and I would like to get back.
What I'm trying to do is getting t

Parse XML
Good day,

I use oempro software and try to parse XMLReturn but it's not working for me, simpl

MASS PM
Hello all, I'm trying to send mass private messages to users in my database but keep getting an erro

some questions
Hello,

I am looking for the answers for following questions:

1) Does PHP support overl

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

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