SHARE
TWEET

funciones.php

Fhernd Oct 12th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function validarLogin($correo_usr, $password_usr){
  2.         $stmt = $this->conexion->prepare('SELECT * FROM USUARIO WHERE correo_usr = ? AND password_usr = ?');
  3.         $password_usr = password_hash($password_usr, PASSWORD_DEFAULT);
  4.         $stmt->bind_param("ss", $correo_usr, $password_usr);
  5.  
  6.         $stmt->execute();
  7.  
  8.         $stmt->store_result();
  9.  
  10.         return $stmt->num_rows > 0;
  11.     }
RAW Paste Data
Top