SHARE
TWEET

Untitled

a guest Jul 21st, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $query = $this->db->query("SELECT userid FROM users WHERE username='$user' AND password=UNHEX('$passhash')");
  2.  
  3.         if ($query->num_rows == 1) {
  4.             // User correct and exists. Is also unique
  5.             $this->errorqueue->add(new Error("Success", "Successful login"));
  6.             $userid = $query->result()->userid;
  7.             print_r($query);
  8.             return ($userid > 0 && $userid != Null ? $userid : False);
  9.         }
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