query($sql) === TRUE) { echo "Table Admin erstellt
"; } else { echo "Error creating table: " . $db->error; } $sql = "CREATE TABLE IF NOT EXISTS aufträge ( id INT(11) AUTO_INCREMENT PRIMARY KEY, beendet INT(11) NOT NULL, kunden_id INT(11) NOT NULL, auftragname text NOT NULL, auftrag_beschreibung text NOT NULL, auftrag_beginn date NOT NULL, auftrag_ende date NOT NULL, materialien longtext NOT NULL COLLATE 'utf8mb4_bin', preis int(11) NOT NULL, anzahlung int(11) NOT NULL, fahrzeug text NOT NULL )"; if ($db->query($sql) === TRUE) { echo "Table Aufträge erstellt
"; } else { echo "Error creating table: " . $db->error; } $sql = "CREATE TABLE IF NOT EXISTS kunden ( id INT(11) AUTO_INCREMENT PRIMARY KEY, vorname text NOT NULL, nachname text NOT NULL, straße text NOT NULL, ort text NOT NULL, plz text NOT NULL , telefonnummer text NOT NULL, fahrzeuge longtext NOT NULL COLLATE 'utf8mb4_bin' )"; if ($db->query($sql) === TRUE) { echo "Table Kunden erstellt
"; } else { echo "Error creating table: " . $db->error; } ?>