Hi
I´m using this code below on add_page to add more than one record to a table:
The code is working fine and it does what it is supposed to.
But after saving a empty windows stays open:
What do i have done wrong here?
Thx
Matthias
global $conn;
if ($values["model_id"])
{
$arr = explode(",",$values["model_id"]);
// This is the name of the multi check box or
// list select field, its value becomes $arr
for ($i=0;$i<count($arr);$i++)
{
$strInsert = "insert into tbl_trans(geraete_id,model_id,trans_ww_product_key)
values ('".$values["geraete_id"]."','".$arr[$i]."','".$values["trans_ww_product_key"]."')";
db_exec($strInsert,$conn);
}
}
exit();
return true;