Welcome Guest, Not a member yet? Register   Sign In
Can Someone help me with this PHP error

[eluser]Ben Lester[/eluser]
when i am trying to delete a forum post it come up with this error message
Fatal error: Call to a member function query() on a non-object in /home/blitzcit/public_html/forums.php on line 607

I attached a file of the forum.php kindly help me what is wrong in this script

Thanks in advance..

Welcome to the CodeIgniter forums.

Line 607 is a "{", so that can't be the problem. On line 602 you make a query, and the $db variable doesn't exist, which is why you're getting the error. If this really is a CodeIgniter app, you shouldn't need to import globals at all.

[eluser]Ben Lester[/eluser]
So what line should I delete?

Who said anything about deleting anything? I have no idea what your current setup is, so I can't really comment on changes to make.

Theme © iAndrew 2016 - Forum software by © MyBB