for ( $counter = 0; $counter <= (count($array)-1); $counter++) {
mysql_query("INSERT INTO shopping_cart
(qty, name, item_id, price) VALUES('".$array[jcart_item_qty][$counter]."', '".$array[jcart_item_name][$counter]."', '".$array[jcart_item_id][$counter]."' ,'".$array[jcart_item_price][$counter]."' ) ")
or die(mysql_error());
}
|