jds137 Posted August 1, 2008 Posted August 1, 2008 I get this error message, trying to delete a topic, and I am clueless how to resolve the issue. Please can someone help me? Fatal error: Call to a member function query() on a non-object in /home/jds137/public_html/forums.php on line 703 Heres line 703: $q=$db->query("SELECT * FROM forum_topics WHERE ft_id={$_GET['topic']}"); Quote
Guest Anonymous Posted August 1, 2008 Posted August 1, 2008 Re: issues with my forums Try replacing it with... $q=mysql_query("SELECT * FROM forum_topics WHERE ft_id={$_GET['topic']}"); Quote
Floydian Posted August 1, 2008 Posted August 1, 2008 Re: issues with my forums alternatively, you can try placing this line before your query: global $db; Quote
jds137 Posted August 1, 2008 Author Posted August 1, 2008 Re: issues with my forums the second one worked, thank you very much for your help. Forums Deleting topic... Done Recaching forum ID 2 ... ... Done 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.