daily pastebin goal
76%
SHARE
TWEET

funciones.php

Fhernd Oct 12th, 2017 62 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top