diff --git a/login.php b/login.php index 6769469..56deda2 100644 --- a/login.php +++ b/login.php @@ -30,7 +30,7 @@ } if (!$has_errors) { $password = hash('sha256', filter_var($_POST['userPass'], FILTER_SANITIZE_STRING)); // Sanitize string anmd encrypt in SHA256. - $query = $bd -> prepare("SELECT * FROM users WHERE email = ? AND `password` = ?"); // Prepare the query. + $query = $bd -> prepare("SELECT * FROM Users WHERE email = ? AND `password` = ?"); // Prepare the query. $query->bindParam(1, $email); // Bind parameters. $query->bindParam(2, $password); $query->execute(); // Execute the query