test
This commit is contained in:
4
test.php
4
test.php
@@ -18,10 +18,10 @@
|
|||||||
die('您已参与过本活动。');
|
die('您已参与过本活动。');
|
||||||
}
|
}
|
||||||
$_SESSION['Student_ID'] = $_POST[student_id];
|
$_SESSION['Student_ID'] = $_POST[student_id];
|
||||||
$sql="INSERT INTO `UserAnswer` (`user_name`, `Student_ID`, `school`, `userclass`, `phone`, `ip`, `timeend`, `timestart`, `thetime`) VALUES ('$_POST[user_name]','$_POST[student_id]','$_POST[school]','$_POST[userclass]','$_POST[telephone]','$userIp','$timeend','$_POST[timestart]','$sec')";
|
$sql="INSERT INTO `UserAnswer` (`user_name`, `Student_ID`, `school`, `userclass`, `phone`, `ip`, `timeend`, `timestart`, `thetime`, `score`) VALUES ('$_POST[user_name]','$_POST[student_id]','$_POST[school]','$_POST[userclass]','$_POST[telephone]','$userIp','$timeend','$_POST[timestart]','$sec',0)";
|
||||||
if (!mysqli_query($con,$sql))
|
if (!mysqli_query($con,$sql))
|
||||||
{
|
{
|
||||||
die("提交失败,请稍后重试。");
|
die("提交失败,请稍后重试。".mysqli_error($con));
|
||||||
}
|
}
|
||||||
//echo "your name is <strong>".$_POST[user_name]."</strong> and student_id is <strong>".$_POST[student_id]."</strong> .<br />your ip is ".$userIp."<br />开始时间 ".$_POST[timestart]." 结束时间 ".$timeend." 用时 ".$m."分".$s."秒<br />";
|
//echo "your name is <strong>".$_POST[user_name]."</strong> and student_id is <strong>".$_POST[student_id]."</strong> .<br />your ip is ".$userIp."<br />开始时间 ".$_POST[timestart]." 结束时间 ".$timeend." 用时 ".$m."分".$s."秒<br />";
|
||||||
//answer_
|
//answer_
|
||||||
|
|||||||
Reference in New Issue
Block a user