I am pulling some products out of my database (doing some other things to
it), but basically making a big array.

Now, if I want to set my quantity to zero, and remove every instance where 
the $iID is, i should be able to do :

      if($cart[num_items] == "0") {
                           
            session_unregister('cart');
               
       } else {
                              
            unset($cart[products][$iID]);
               
              }

If I have one product in the array, it works fine.  If I have two products in the 
array,
it does nothing (except decrements my number of items in the cart).

Could anyone show me another solution to this problem?

thanks so much
bryan

Reply via email to