Ah, I see what I've done there - thanks for the help.
I'm actually trying to get 4 sets of variables into one multi-dimensional array and don't know where to start.
From the array I want to create a series of mysql querys to update a database with the information.
So far I've got:
<?
// get nrc set price and put it into an array for use later
$cap_id_to_update = implode(' ', $_POST['cap_id_']);
$cap_id__array;
$cap_id_array = explode(' ', $cap_id_to_update);
//echo($nrc_price_to_update);
echo("<br>");
foreach ($cap_id_array as $cap_id_array_values){
echo($cap_id_array_values);
echo("<br>");
}
// get nrc set price and put it into an array for use later
$nrc_price_to_update = implode(' ', $_POST['nrc_setprice_']);
$nrc_price_array;
$nrc_price_array = explode(' ', $nrc_price_to_update);
//echo($nrc_price_to_update);
echo("<br>");
foreach ($nrc_price_array as $nrc_price_array_values){
echo($nrc_price_array_values);
echo("<br>");
}
// get percentage discount and put it into an array for use later
$percentage_discount_to_update = implode(' ', $_POST['percentage_discount_']);
$percentage_array;
$percentage_array = explode(' ', $percentage_discount_to_update);
//echo($percentage_discount_to_update);
echo("<br>");
foreach ($percentage_array as $percentage_array_values){
echo($percentage_array_values);
echo("<br>");
}
// get monetary discount and put it into a array for use later
$monetary_discount_to_update = implode(' ', $_POST['monetary_discount_']);
$monetary_array;
$monetary_array = explode(' ', $monetary_discount_to_update);
//echo($monetary_discount_to_update);
echo("<br>");
foreach ($monetary_array as $monetary_array_values){
echo($monetary_array_values);
echo("<br>");
}
?>
But I haven't got a clue about how to create the multidimensional array or even if that's the best way to create the multiple mysql update queries - any ideas?