Jump to content
MakeWebGames

Small Problem.


chaoswar4u
 Share

Recommended Posts

I require this to be an item add line.

mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error())

I currently have this -

item_add($item,$winner,1);

It dosent cause an error with my attempt but it dosent credit to the users inventory either. Can some please help point out my error. Many thx in advance.

Link to comment
Share on other sites

Re: Small Problem.

 

I require this to be an item add line.

mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error())

I currently have this -

item_add($item,$winner,1);

It dosent cause an error with my attempt but it dosent credit to the users inventory either. Can some please help point out my error. Many thx in advance.

mysql_query("INSERT into inventory VALUES('', '$item', '$winner', '1'), $c) or die(mysql_error());

?

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...