require 'include/session.inc';
require 'include/common.inc';
+ if ($db->query("SELECT COUNT(*) FROM students")->fetch(PDO::FETCH_NUM)[0] == 0) {
+ block("red", "no students registered");
+ break;
+ }
+
block("black", "summary of everything for " . date("d.m.Y H:i"));
$result = $db->query("SELECT firstname, lastname, mnumber, blackboard FROM students ORDER BY lastname");