toDB($_POST['event_list']); // IDs of allowed categories
$cal_subs = $tp -> toDB($_POST['event_subd']); // Checkbox results
$cal_db->db_Delete("event_subs", "event_userid='" . USERID . "'"); // Delete all for this user to start
foreach($cal_cats as $cal_row)
{ // Now add in a subscription for each allowed category
if ($cal_subs[$cal_row])
{
$cal_inargs = "0,'" . USERID . "','" . $cal_row . "'";
$cal_db->db_Insert("event_subs", $cal_inargs);
}
// print $cal_row . $cal_subs[$cal_row] . "
";
}
$caltext = "
" . EC_LAN_130 . " |
" . EC_LAN_131 . " |