help!!!!!!

Status
Not open for further replies.

moyles

New Member
Messages
83
Reaction score
0
Points
0
hello

i put a hall of fame fuction in my explore menu and did everyhting so it could eb acceses but when i click on it it brings up the hall of fame but when i click on a topic to look at it brings up this error

Fatal error: Call to a member function query() on a non-object in /home/mmoyles/public_html/halloffame.php on line 57


this is the line it is referring too


$q=$db->query("SELET u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY level DESC,userid ASC LIMIT 2");



if you wish to see this go to www.zoneoftime.pcriot.com and register click on explore and hall of fame and it will come up

thanks been at this for ages and cant find out whats wrong with it

thanks again
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Without us looking at any actual code we're not able to figure out the cause of your error. Usually we do not help users with their own scripts and problems either, unless the issue is caused by something with x10.

I'll tell you the cause of your error, maybe it'll help you. The script is attempting to us a member (the method query()) of the object $db, and it doesn't exist. Does the class that the object db is instantiated from have a method named query? Check for that.
 
Last edited:
Status
Not open for further replies.
Top