4 $mnumber = $_POST['mnumber'];
5 $password = $_POST['password'];
7 if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 0) {
8 print '<table bgcolor="red">';
9 print '<tr><th><b><font color="white">Mat.nummer not found</font></b></th><tr>';
11 print "Mat.Nummer was not found. You have to register first!";
15 if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber AND password = \"$password\"")->fetch(PDO::FETCH_NUM)[0] == 0) {
16 print '<table bgcolor="red">';
17 print '<tr><th><b><font color="white">wrong password</font></b></th><tr>';