Danny696 Posted April 25, 2009 Posted April 25, 2009 i just added a little page which says your last 50 attacks and when i try to go on the page it says Fatal error: Call to a member function query() on a non-object in /home/darkstr1/public_html/header.php on line 416 and line 416 of header is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. any help Quote
Paddy Posted April 25, 2009 Posted April 25, 2009 Re: Help With Header this is just a guess but if i remember well you need to define the $db somewhere in the function?? correct me if im wrong!! Quote
Faz` Posted April 25, 2009 Posted April 25, 2009 Re: Help With Header Nope, you are right. I had this problem before, I think the global list is at the top, just add a $db to it. Quote
Danny696 Posted April 25, 2009 Author Posted April 25, 2009 Re: Help With Header is this the global list ?? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Guest Anonymous Posted April 25, 2009 Posted April 25, 2009 Re: Help With Header is this the global list ?? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Yeah, but if your using it in a function, you'll need to add it again (in the function). Quote
Danny696 Posted April 25, 2009 Author Posted April 25, 2009 Re: Help With Header how do i do that i dont get ya Quote
Faz` Posted April 25, 2009 Posted April 25, 2009 Re: Help With Header Just add $db to that list, you'll be fine lol. He means if you are using many functions, than you'd have to add it to the global list in them too, but try it out, if you get another error, post it up here. Quote
Danny696 Posted April 25, 2009 Author Posted April 25, 2009 Re: Help With Header is this the global list ?? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. isn't it allready there? Quote
D T K Posted April 25, 2009 Posted April 25, 2009 Re: Help With Header Post your whole Header Code Quote
DELETE ME NOW! Posted April 26, 2009 Posted April 26, 2009 Re: Help With Header under your function example.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That is how it should be.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.