MongoDB does not seem to want to push to array
问题 I am making an online shopping cart, and I having huge issues pushing add to cart to items $collection->update( array('session' => $_SESSION["redi-Shop"], array('$push'=> array('items'=> $_POST["item"]) ))); When the customer selects their first item to add to the cart it works fine $collection->insert( array('session' => $_SESSION["redi-Shop"], 'status' => "cart", 'items' =>$_POST['item'])); but after the first item is added it does not allow me to add any more. Please any advice would be