webster2001 Posted March 30, 2008 Posted March 30, 2008 I get this error which is:Fatal error: Call to a member function query() on a non-object in /home/webcn/public_html/pets.php on line 67 Line 67 is:$inv=$db->query("SELECT iv.*,i.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid WHERE iv.inv_userid={$userid} AND iv.inv_id={$id}",$c) or die(mysql_error()); Anyone have any ideas about a fix? If you need details on anything which may help the fix juts post here or PM me. Cheers, webster2001 Quote
Guest Anonymous Posted March 30, 2008 Posted March 30, 2008 Re: Errors You have already asked this question AND been given a working solution... global $db; Quote
webster2001 Posted March 30, 2008 Author Posted March 30, 2008 Re: Errors You have already asked this question AND been given a working solution... global $db; Whoops, sorry lol its works as well. cheers. PS NOTE TO SELF: never ask that again!!! :wink: 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.