query("SELECT COUNT(*) FROM workdone WHERE mnumber = $mnumber AND session = $sessionid")->fetch(PDO::FETCH_NUM)[0] == 1) { $db->query("DELETE FROM workdone WHERE mnumber = $mnumber AND session = $sessionid"); print ''; print ''; print '
deleted old submission
'; } $excount = count($exchecked); $donestring = implode(',', $exchecked); $db->query("INSERT INTO workdone (mnumber,session,manydone,thisdone) VALUES (\"$mnumber\", \"$sessionid\", \"$excount\", \"$donestring\")"); print ''; print ''; print '
submitted
'; exit; } ?>
submit examples for
Mat.nummer:
Password:
Examples: $exid "; $exnum++; if ($exnum%3 == 0) { print ""; } } ?>