query("SELECT thisdone FROM workdone WHERE mnumber = $mnumber AND session = $sessionid")->fetch(PDO::FETCH_NUM)[0];
if ($result == "") {
print "
";
print "no submit |
---|
";
print "
";
print "No results were submitted for " . end($sessions)[0] . ".";
break;
}
else {
print "";
print "Last submit of $mnumber for " . end($sessions)[0] . " |
---|
";
print "
";
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 "Last submits for " . end($sessions)[0] . " |
---|
";
print "
";
print "";
while ($row = $result->fetch(PDO::FETCH_NUM)) {
print "";
echo "$row[0] $row[1] | $row[2] | $row[4] | $row[3]/$lstsession_nex | ";
print "
";
}
print "
";
}
break;
}
?>