if ($values["fieldname"])
{
$arr = explode(",",$values["fieldname"]);
// 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 TableName (field) values ('".$arr[$i]."')";
// add more fields from the add page to be inserted into database
db_exec($strInsert);
}
header("Location: MyPage_list.php");
// Exit and Redirect to the list page after updating database
exit();
}
I'm new to phprunner
please someone explain to me how do i use this code
thank you in advance