Can you store it into array...
Sure you can... I am not going to write the whole code...but consider this...
- array_push() function
you can store users choices into lets say $user=array(); then you can add stuff to $user doing this $user=array_push($user, $value)....
- Then you can retrieve data out of an array and using multiple queries store them into database...
for example
$connection=mysql_connect("host", "user", "password");
$db=mysql_select_db("yourdatabase");
//initialize query array
$sql=array();
for($i=0; $i<count($user); $i++)
{
$sql[]="insert into $tablename values (null, \"$user[$i]\")";
}
for($i=0; $i<count($sql); $i++)
{
$res=mysql_query($sql[$i]);
}
//Then check if your query was successful
if($res)
{
echo "<script>window.alert(\"Successful query...\")</script>";
}
I hope that helps...
Modify code to suit your queries... But concept should work fine...
Di