PDA

View Full Version : Kind of at a loss with this error...


David Bott
01-19-2004, 03:27 PM
Ok, this line of code gives me an error in the /admin/functions.php file...(ver 2.2.8)


$subscribed=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE threadid='$pthreadid' AND userid='$subuserid' LIMIT 1");


The error is makes is...

Fatal error: Call to a member function on a non-object


I can not tell what the heck is making this line error out. I have also tried putting it into a fresh unhacked functions.php file with the same result. If I run thw query in MyPHPAdmin replacing the $vaules with numbers, it work fine.

Any thoughts please.

NTLDR
01-19-2004, 03:28 PM
Put:


global $DB_site;


Right above that line.

David Bott
01-19-2004, 03:35 PM
YES!!! Thank you, Thank you, Thank you!