<?php
-require 'nav.inc';
+require 'include/head.inc';
if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!=""
&& $_POST['mnumber']!="" && $_POST['email']!="" && $_POST['password']!="")
$email = $_POST['email'];
$password = $_POST['password'];
- require 'createdb.inc';
+ require 'include/db.inc';
// user already exists //
if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 1) {