in a database products with various attributes are stored, eg
jersey in sizes Small, Medium, Large XLarge
wallet in Black, Blue, Red, Yellow
when displaying a product those attributes will be shown + a field for entering the desired quantity for purchasing it:
orCode:Jersey Size | Qty Small |  Medium |  Large |  XLarge | 
as said, both attributes (eg size or color) and the quantity are produced dynamically from the database.Code:Wallet Color | Qty Black |  Blue |  Red |  Yellow | 
Now if a user buys 2 Jerseys in Medium, ie types a 2 into the quantity input field of Medium and presses 'submit',
how do i know that the quantity of 2 refers to the medium jersey?