diff --git a/test.php b/test.php index 80f210e..a339898 100644 --- a/test.php +++ b/test.php @@ -18,7 +18,7 @@ die('您已参与过本活动。'); } $_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`) VALUES ('$_POST[user_name]','$_POST[student_id]','$_POST[school]','$_POST[userclass]','$_POST[telephone]','$userIp','$timeend','$_POST[timestart]','$sec')"; if (!mysqli_query($con,$sql)) { die("提交失败,请稍后重试。");