I have a select "List" box where I am selecting multiple items by holding down CTRL.
<input name="prod_id" type="SELECT" multiple>
--SEPERATE FIELD--
<input type="hidden" value="12321" name="package_id">
That Type
So I am trying to add multiple rows as follows:
$ass = explode("+",$_REQUEST['prod_id']);
foreach($ass AS $b) {
print($b."<br>");
mysql_query("INSERT into `package_contents` (`package_id`, `prod_id`) VALUES ('$package_id', '$b'); ");
}
But it's not working!
Am I using the wrong kind of loop?
should I be using something else..?