Supplied Arguement Error...Please Help :(

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alexjbriggs
Forum Newbie
Posts: 1
Joined: Mon Oct 12, 2009 2:16 pm

Supplied Arguement Error...Please Help :(

Post by alexjbriggs »

Hey Guys...i know this is a common problem and ive read other threads, but can't figure out my specific problem. Any help would be appreciated!!

This script worked perfect until i moved it to a different host. Getting this error:

Code: Select all

 
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in C:\Inetpub\vhosts\levelznightclub.com\httpdocs\index.php on line 285
 
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Inetpub\vhosts\levelznightclub.com\httpdocs\index.php on line 357
 
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in C:\Inetpub\vhosts\levelznightclub.com\httpdocs\index.php on line 362
 


Here are the lines from the script that are listed above. If you need other information please let me know!!

Line 285:

Code: Select all

 
$num=mysql_numrows($result);
 
Line 357:

Code: Select all

 
if (!mysql_num_rows($result)) {
 
Line 362:

Code: Select all

 
$num2=mysql_numrows($result2);
 
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: Supplied Arguement Error...Please Help :(

Post by JNettles »

Are you sure that your query is still returning results or is it just a problem with these specific functions?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Supplied Arguement Error...Please Help :(

Post by jackpf »

Try var_dump() 'ing $result. £10* says it's "false" :P


*cyber money.
Post Reply