Thanks E-JunkieChef,
so would something like this work to multiple products into my database:
for ($i=1; $i<=$POST['numcart_items']; $i++) {
$item_namex = $POST['itemname'.$i];
$item_numberx = $POST['itemnumber'.$i];
$quantityx = $_POST['quantity'.$i];
$mc_gross_x = $POST['mcgross_'.$i];
mysql_select_db($mysql);
$query = "INSERT INTO orders (item_name, item_number, quantity, item_total) VALUES ('$item_namex', '$item_numberx', '$quantityx', '$mc_gross_x')";
mysql_query($query) or die('Error, insert query failed');
}
This way I run however many queries as there are items.
Thanks for your help,
Adam