query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 0) {
print '
';
print 'Mat.nummer not found |
---|
';
print '
';
print "Mat.Nummer was not found. You have to register first!";
exit;
}
if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber AND password = \"$password\"")->fetch(PDO::FETCH_NUM)[0] == 0) {
print '';
print 'wrong password |
---|
';
print '
';
exit;
}
?>