I got it Password Matched
http://php.flashwebhost.com/sherly/login.html
Code:<?php require 'includes/database.php'; $email = $_POST['email']; $password = $_POST['password']; $email = trim($email); $password = trim($password); $sql = "select * from users where email='$email'"; $result = $mysqli->query($sql); if ($result->num_rows == 0) { die("No user with email address $email found"); } $userInfo = mysqli_fetch_assoc($result); if ($userInfo['password'] == $password) { echo "Password Matched"; } else { die("Invalid password"); } echo 'Password Matched;




Reply With Quote
Bookmarks