![]() |
SQL query problem.
i have some problems :(
i have this script: PHP Code:
PHP Code:
Code:
Fatal error: Call to a member function on a non-object in c:\file-x.php on line 31 Thanks for any help you can give me, FlyingDutchman P.S. originalforumid is from type smallint(5) unsigned if that possibly matters (guess not, but ok) |
Try adding before that line:
PHP Code:
|
i've tried already... didn't work?!?!?
|
Did you insure that global.php is being included in the file file-x.php?
Chances are the non-member object it's referring to is $DB_site. If it is included at the top of the file, then try this instead: Replace: PHP Code:
PHP Code:
PHP Code:
|
it's for my (upcoming) recycle bin hack, it will get a listing of all threads that are in the recycle bin and it will also show the original forum title (which -the id- is saved in the row 'originalforumid' in the table 'thread'
this piece of code is for the admin CP... i can't really move it out of the while loop, b/c the forumid variable ($thread_info[originalforumid]) is defined in the while loop... of course i've required global.php and i've changed query to query_first also, but no luck :( P.S. This code isn't really really needed for the hack, but i'd like to get it running this way, and just printing the forumid is kinda lame i think, the title suits better... |
w00t, I guess all you guys are as stupid as me :D
the fix is: change $DB_Site to $DB_site, d0h ;) i'm happy that i found out this typo myself :) |
All times are GMT. The time now is 07:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|