PDA

View Full Version : mysql fetch array error - what could be wrong?


crappytheclown
02-25-2006, 12:17 AM
i get this error on my newly installed script
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/crappyth/public_html/lib/mysql.lib on line 29

heres the code of mysql.lib:http://www.crappytheclown.roxr.com/lib/mysql.lib (line 29 is this code: return mysql_fetch_array($r); )

I'm very bad at php and I don't know what the heck the problem is (i see nothing wrong with the script) so can someone give helpful pointer or even a solution to the problem? O and I installed the mysql database stuff, too

-

the homepage, not the signup page, login page, help page. also if this helps, i cannot login into the admin area with my set info that set in the configuration file. and i can't login with as a member with a test member set up from the mysql db. all these pages can accessed from here http://www.crappytheclown.roxr.com/ this is the admin area but there is no error here http://www.crappytheclown.roxr.com/backdoor/

-

if you want to look at the files heres the whole script http://www.crappytheclown.roxr.com/images1/dieselsmarttraffic.rar

firepages
02-25-2006, 12:32 AM
cant see the function mysql() , so unless it is set elsewhere ... or is that supposed to be mysql_query() or mysql_db_query() (both PHP functions)

function q($q_str){
global $db_name;
$r = mysql($db_name,$q_str); // << ???
return $r;
}