From 79c955a5969b6a1688c85c81c92d98f47e09d7b3 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 8 Oct 2012 11:09:08 +0200 Subject: [PATCH] submit as often as you want. --- submit.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/submit.php b/submit.php index c98678a..fa581f8 100644 --- a/submit.php +++ b/submit.php @@ -17,11 +17,10 @@ $sessionid = $SESSIONS[$SESSIONS_next]['id']; if($db->query("SELECT COUNT(*) FROM workdone WHERE mnumber = $mnumber AND session = $sessionid")->fetch(PDO::FETCH_NUM)[0] == 1) { - print ''; - print ''; + $db->query("DELETE FROM workdone WHERE mnumber = $mnumber AND session = $sessionid"); + print '
You already submitted results for this session
'; + print ''; print '
deleted old submission
'; - print "You can only submit your calculated examples once!"; - exit; } $excount = count($exchecked); -- 2.39.5