This commit is contained in:
xice09
2018-05-30 16:17:18 +08:00
parent a48516cae0
commit 52ffc7bee2
2 changed files with 3 additions and 5 deletions

View File

@@ -16,9 +16,7 @@
{
die('对不起,您已参与过本活动。');
}
$sql="INSERT IGNORE 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($sql,$con))
{
die("提交失败,请稍后重试。");