query("SELECT thisdone FROM workdone WHERE mnumber = $mnumber AND session = $sessionid")->fetch(PDO::FETCH_NUM)[0]; if ($result == "") { print ""; print ""; print "
no submit
"; print "No results were submitted for " . end($sessions)[0] . "."; break; } else { print ""; print ""; print "
Last submit of $mnumber for " . end($sessions)[0] . "
"; print $result; } } else { $result = $db->query("SELECT students.firstname, students.lastname, students.mnumber, workdone.manydone, workdone.thisdone FROM workdone, students WHERE workdone.session = $sessionid AND workdone.mnumber = students.mnumber"); print ""; print ""; print "
Last submits for " . end($sessions)[0] . "
"; print ""; while ($row = $result->fetch(PDO::FETCH_NUM)) { print ""; echo ""; print ""; } print "
$row[0] $row[1]    $row[2]    $row[4]    $row[3]/$lstsession_nex
"; } break; } ?>
Last submission
Mat.nummer:
Password: