"; for($i=0;$i<=$limtex-1;$i++){ $n1 = $n_value[$i]; echo $select[$i]; $selectf = $select[$i]; $Timef = $Time[$i]; echo $dateTime=$Date; $measuref = $measure[$i]; $insert = mysql_query("INSERT INTO schedule values('','$insertdate','$insertdate','','','$n1','$selectf','$measuref')") or die(mysql_error()); echo "d"; } if($insert){ ?>