products

From: Date: Tue, 19 Jun 2001 22:10:29 +0000
Subject: products
Groups: php.db 
Request: Send a blank email to php-db+get-9638@lists.php.net to get a copy of this message
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

« previous php.db (#9638) next »