3 if ($db = new PDO('sqlite:banane.db')) {
4 $db->query('CREATE TABLE IF NOT EXISTS students
5 (mnumber int, firstname string, lastname string, email string, password string, blackboard int DEFAULT 0, PRIMARY KEY (mnumber))');
6 $db->query('CREATE TABLE IF NOT EXISTS workdone
7 (mnumber int, session int, manydone int, thisdone string)');
8 $db->query('CREATE TABLE IF NOT EXISTS prefs
9 (key string, value string, PRIMARY KEY (key))');
10 $db->query('CREATE TABLE IF NOT EXISTS sessions
11 (id int NOT NULL, timestr string NOT NULL, PRIMARY KEY (id))');