diff --git a/controllers/login.php b/controllers/login.php index 5035996..e94db23 100644 --- a/controllers/login.php +++ b/controllers/login.php @@ -14,7 +14,7 @@ $pswd = mysqli_real_escape_string($connection, $password_signin); // Query if email exists in db - $sql = "SELECT * From users WHERE email = '{$email_signin}' "; + $sql = "SELECT * From users WHERE email = '{$user_email}' "; $query = mysqli_query($connection, $sql); $rowCount = mysqli_num_rows($query); @@ -91,4 +91,4 @@ } -?> \ No newline at end of file +?> diff --git a/index.php b/index.php index 6daeedc..c84ce17 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@