if ( ! isset($SESSIONS_next) ) {
block("red", "submission closed");
- break;
+ exit;
}
if(isset($_POST['submit']) && $_POST['mnumber']!="") {
print '<tr><th><b><font color="white">You already submitted results for this session</font></b></th><tr>';
print '</table>';
print "You can only submit your calculated examples once!";
- break;
+ exit;
}
$excount = count($exchecked);
- $donestring = implode(', ', $exchecked);
+ $donestring = implode(',', $exchecked);
$db->query("INSERT INTO workdone (mnumber,session,manydone,thisdone)
VALUES (\"$mnumber\", \"$sessionid\", \"$excount\", \"$donestring\")");
print '<table bgcolor="lightgreen">';
print '<tr><th><b><font color="white">submitted</font></b></th><tr>';
print '</table>';
- break;
+ exit;
}
?>