Jump to content

[SOLVED] PHP Variable Problem


stuffradio

Recommended Posts

I'm making a Trade System for a pet game.

 

I'm making the form for setting up the trade. There are some duplicate items(these are allowed).

The checkbox for what you want to trade contains the item id. I want to know how to check the item_id id so I can prevent duplicate items that aren't checked from being affected from the query.

Link to comment
Share on other sites

Okay I'll try and explain a bit better...

 

I'm sure you all know what a trading system is, so I won't explain that :)

 

I have a list of all the items in your inventory that are not currently being traded. The list displays one item line by line. On each line there is a checkbox that has the value of that item id. I'm using that Item id to setup the trade, get the item info. I want to know how I can also get the id of the item. The id is the first column in the table, which is the primary key.

 

I would like to use the id to tell it which item to do what with in case the other user has a duplicate item.

 

I hope that clears it up for you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.