This commit is contained in:
xice09
2018-05-30 17:16:54 +08:00
parent 50308492f2
commit 55bcb320bb
3 changed files with 143 additions and 4 deletions

View File

@@ -16,6 +16,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')";
if (!mysqli_query($con,$sql))
{
@@ -65,7 +66,7 @@
//echo "No.".$i." your choice is ".$c." answer is ".$e."<br />";
//};
//echo "每题一分: your score is ".$g."<br />";
echo "提交成功。谢谢参与我们的活动请继续关注我们公众号bupt_stu的后续推送。现在你可以直接关闭页面了。";
//close linking
mysql_close($con);
die("提交成功。谢谢参与我们的活动请继续关注我们公众号bupt_stu的后续推送。现在你可以直接关闭页面了。");
?>