include("../includes/common.htm");
//if ($id=='') { $id=$_GET['id']; }
$status=$_POST['status'];
if (($fid) && ($status=='save')) {
$datestr=split("\/",$work_date);
$month=GetMonths($datestr[0]);
$year=$datestr[2];
$day=$datestr[1];
$end_date="$datestr[2]-$datestr[0]-$datestr[1]";
$insert="insert into models_shows_schedule (modid,Showname,Month,Year,Day,description,End_date) value ('$fid','$showname','$month','$year','$day','$textarea','$end_date')";
//print "$insert
";
$updaterec = mysql_query("$insert") or $msg="Unable to insert record, contact admin.
";
if ($updaterec!='') { $msg="Record successfully inserted."; }
}
?>