PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$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']){
$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.