Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $connection = new mysqli($servername, $usernm, $password, $database, 3310);
- error_reporting(0);
- /* grab email and password from input */
- $user_email = $_POST['user_email'];
- $password = $_POST['password'];
- $is_email=0;
- $is_username=0;
- if ($_POST['login'])
- {
- if ($user_email && $password)
- {
- $row = "SELECT * FROM Database";
- $result = $connection->query($row);
- $user_email = test_input($_POST["user_email"]);
- //check if e-mail address is well-formed
- if ($result->num_rows > 0)
- {
- while($user = $result->fetch_assoc())
- {
- if (!strcasecmp($user["user_email"], $user_email))
- {
- if (!password_verify($password,$user["user_pass"]))
- { .... login to system set cookies .... }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement