Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = $this->db->query("SELECT userid FROM users WHERE username='$user' AND password=UNHEX('$passhash')");
- if ($query->num_rows == 1) {
- // User correct and exists. Is also unique
- $this->errorqueue->add(new Error("Success", "Successful login"));
- $userid = $query->result()->userid;
- print_r($query);
- return ($userid > 0 && $userid != Null ? $userid : False);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement