From acd3cd7aade6abb8aba967fd746524592fb94faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Rodr=C3=ADguez?= <88201812+santydesignscr@users.noreply.github.com> Date: Fri, 14 Jan 2022 21:44:23 -0600 Subject: [PATCH] Please fix that There is an error in the function name, that's why I was getting a 500 error --- src/function/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function/Login.php b/src/function/Login.php index b072f16..d1ae0a5 100644 --- a/src/function/Login.php +++ b/src/function/Login.php @@ -2,7 +2,7 @@ require __DIR__.'/Connect.php'; if(isset($_POST['login'])){ $FormData = array( - 'email' => mysql_rea_escape_string($connect, $_POST['email']), + 'email' => mysqli_real_escape_string($connect, $_POST['email']), 'password' => $_POST['password'] ); $sql = mysqli_query($connect,"SELECT * FROM `hosting_clients` WHERE `hosting_client_email`='".$FormData['email']."'");