tt
This commit is contained in:
3
test.php
3
test.php
@@ -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的后续推送。现在你可以直接关闭页面了。");
|
||||
?>
|
||||
Reference in New Issue
Block a user