X-Git-Url: https://git.treefish.org/banana.git/blobdiff_plain/98bd1a7add3a56c08fb03293824e392b6d871613..17e62c4bb73a987b44853d7b07a86c2b14160bda:/submit.php?ds=inline diff --git a/submit.php b/submit.php index c98678a..d64b8da 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); @@ -48,7 +47,7 @@ Mat.nummer: - Password: + Password: