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

Production Order Enterprise Service to Manufacturing Exctn Sys (MES) ???
Hello Experts,

In our current landscape SAP ECC 5.0 is integrated to MES system via PI 7.

NOOB needs help with upload file
The intent of this form is to create a folder for a client and upload an image into another folder '

displaying unknown amount of results
I am reading a directory and getting a list of folders in the directory, I want to display the folde

xml
<?php

echo "<h1>XML Articles</h1>";

$home

what business processes?
Hi,

A general question. What business processes (like OTC - Order to Cach, P2P, R2R etc)

mysqli_fetch_assoc returns multiple arrays, how to return a single array
Hello, I am using mysqli_fetch_assoc which is returning multiple rows, so it looks like:

Code

upload photo limits
ive got a upload photo script and im just trying to make more secure currently it limits size and as

apart from cron
I need to run a php file every one hour. Is there any other solution apart from cron job?

PHP, jAVASCRIPT setting input values, why isn't it working?
Hi:

I am calling this javascript:
<script language="javascript">

Fatal error: Call to a member function fetchrow() on a non-object in C:xamppht
okay i have this query and everytime i add `item_id`=? to it... it gives me the error in the title..

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