format('H:i:s') if($days == $timestamp2) { $delete = mysql_query("DELETE FROM `schedule` WHERE `fStart`='{$rows['fStart']}'"); } } for($i=0;$i<=$limtex-1;$i++) { $select = explode(",",$SelectedSource); $n1 = $n_value[$i]; $selectf = $select[$i]; $measuref = $measure[$i]; $dateTime=new DateTime($date." ".$Times[$i]); $parsed_date = $dateTime->format('Y-m-d H:i:s'); mysql_query("INSERT INTO schedule VALUES('null','".$parsed_date."','".$UpdateDate."','".$measuref."','','".$n1."','".$selectf."','".$measuref."')"); } ?>