variables
Posted: Sun Feb 27, 2005 8:14 pm
My problem is...
$qty continues to add to itself. But what I need is $qty to be diffrent for each $itm_cat. Is there any way that if $itm_cat = 'shirts' then $qty will add up for the shirts but when the $itm_cat comes through and is 'hats' then $qty will start adding up a new number. Its hard to explain if you don't understand Im sorry.
Code: Select all
$rules = mysql_query("SELECT * FROM item_cat WHERE cid='$itm_cat'");
while ($row3 = mysql_fetch_assoc($rules)){
$qty = $rowї'qty'] + $qty;
if ($qty > $row3ї'xShip_item']){