Hiya folks. Need some help here. This is what the record in the dB looks like:
NOTE: ^ is the parser
itemID:
87^93
ProdName:
Test product<br><b>Color</b>: Blue^nice clean shirt
Now, the above example has the customer buying two products whose prod ID is 87 and 93. For Prod ID 87 the user chose the item in blue; and Prod ID 93 has no color or size pref.
What I'd like to do is the following for inventory purposes: do a loop over the ProductsSold table for each product and then find any items that have COLOR and SIZE.
So, in the above example, when I go into the inventory section to see how many items of prod ID 87 were sold, I want to be able to see that x-number of blue were sold, and x-number of red sold. Right now, I have the overall sold.
Does this make sense?
_____________________________
Just Imagine.
NOTE: ^ is the parser
itemID:
87^93
ProdName:
Test product<br><b>Color</b>: Blue^nice clean shirt
Now, the above example has the customer buying two products whose prod ID is 87 and 93. For Prod ID 87 the user chose the item in blue; and Prod ID 93 has no color or size pref.
What I'd like to do is the following for inventory purposes: do a loop over the ProductsSold table for each product and then find any items that have COLOR and SIZE.
So, in the above example, when I go into the inventory section to see how many items of prod ID 87 were sold, I want to be able to see that x-number of blue were sold, and x-number of red sold. Right now, I have the overall sold.
Does this make sense?
_____________________________
Just Imagine.