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