Page 1 of 1

Supplied Arguement Error...Please Help :(

Posted: Mon Oct 12, 2009 2:18 pm
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);
 

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

Posted: Mon Oct 12, 2009 3:06 pm
by JNettles
Are you sure that your query is still returning results or is it just a problem with these specific functions?

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

Posted: Mon Oct 12, 2009 3:12 pm
by jackpf
Try var_dump() 'ing $result. £10* says it's "false" :P


*cyber money.