I have the following table structure:
Inventory: userid - a - b - c - d - e - f - g - h - i - j - k
The letters represent an inventory’s slots. Here are stored products‘ ids. These products’ data are also stored in a table called Products. The values in Inventory are linked to the id of the item in Products
A user wants to throw a product from his inventory, clicks a button and using ajax the id of the item is sent to the server.
How can I find and set to NULL the cell containing that product if I have no information other information than the id?
P.S. I am using Symfony framework, if this makes the things easier.
Not the best solution, just an idea:
This one should work, but I cannot run it to test: