From 16821e5ad8211da42b892c7b072e286c5cac26b2 Mon Sep 17 00:00:00 2001 From: Alejandro Nieto Date: Thu, 17 Dec 2020 09:49:10 +0100 Subject: [PATCH] Solved typo error. --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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