Jump to content
MakeWebGames

Recommended Posts

Posted

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

Guest Anonymous
Posted

Re: Errors

You have already asked this question AND been given a working solution...

global $db;

Posted

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:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...