X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/4678f209fb04682d0981cadb566d63f5726f9e09..8db41c98817b1b48532dc3cebf4bea166e42bb70:/admin/blackboard.php?ds=sidebyside diff --git a/admin/blackboard.php b/admin/blackboard.php new file mode 100644 index 0000000..b683221 --- /dev/null +++ b/admin/blackboard.php @@ -0,0 +1,39 @@ +query("UPDATE students SET blackboard=blackboard+1 WHERE mnumber=" . trim($_POST['mnumber'])); + block("lightgreen", "added blackboard"); + } + + block("black", "add blackboard"); +?> + +
+ + + + + +
Matr.nummer:
+
+ +query("SELECT firstname, lastname, mnumber, blackboard FROM students"); + + print ""; + while ($student = $result->fetch(PDO::FETCH_ASSOC)) { + print ""; + print ""; + print ""; + print ""; + print ""; + print ""; + } + print "
" . $student['firstname'] . " " . $student['lastname'] . "  " . $student['mnumber'] . "  " . $student['blackboard'] . "
"; + +?> \ No newline at end of file