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
Did you know?Explore Trending and Topic pages for more stories like this.
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

How to change www in url with a specified name
Hi
I'm trying to change the url http://www.sitename.com/apparels to something like below
http:

ereg_replace in Wordpress
Heya - so I'm working on this site: http://world-of-smiles.theportlandco.com/new-patients

The

When i am Canseling the Billing Document in VF11 I am getting Shortdump
Hi Experts

When i am Canseling the Billing Document in VF11 I am getting Shortdump.

Cache PHP Objects/Classes?
Does anyone have ideas about caching PHP objects using something like: http://memcached.org/

Display thumbnails as square while retaining aspect ratio
I am trying to figure out a way to make an image display as a square, for example 80x80 pixels, when

Problem with PHP code- simple contact form
I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a contact form wit

Firefox displaying PHP source code??
Currently testing a site thats almost built, am going to be including php on a sidebar on all pages

Form a inline view based on the results of the previous query?
Hi Experts,
Can we form a inline view on the results of a previous query (another inline view)?

Save data in input fields when they press "BACK BUTTON"
Hi, this is html form: And let's say they get a error "Please enter ur title must be more then

OOP help
okay so i have a class im making it has everything setup i just need to randomize the 2 variables an

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