jbwebdesign Posted February 6, 2009 Report Share Posted February 6, 2009 I am trying to edit a Script but i'm having problems with it because I keep getting this error Fatal error: Call to a member function value() on a non-object Can anyone tell me what this means?? and how can I fix it?? this is the line of code that gives me the error...... $row_user = $db->get_sql_row("SELECT user_id FROM probid_users WHERE user_id=" . $session->value('user_id')); Quote Link to comment Share on other sites More sharing options...
jbwebdesign Posted February 6, 2009 Author Report Share Posted February 6, 2009 I fixed the problem!! never mind.....for anyone else that wants to know how, all i did was add the following to the top..... global $db, $session; Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.