Jump to content
MakeWebGames

[V2] Add item query


illegalife

Recommended Posts

  • 2 months later...

Re: [V2] Add item query

Wow, this is old....but no-one answered, and I actually know this one:

(note: found topic using search function >.>)

 

$itemidexplore=x;
$gain=rand(1,100);
print "Inside the box were $gain bandaids.";
$db->query("INSERT INTO inventory   VALUES('',$itemidexplore,$userid,$gain)",$c); 

 

change x to the id number of the item you want to input. Say if your bandaids were id number 2, you'd put $itemidexplore=2;

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.

×
×
  • Create New...