Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function verify_Username_and_pass($un, $pwd){
- $query = "SELECT *
- FROM users
- WHERE username = ? AND password = ?
- LIMIT 1";
- if($stmt = $this->conn->prepare($query)){
- $stmt->bind_param('ss', $un, $pwd);
- $result = $stmt->execute();
- if($stmt->num_rows>0){
- $stmt->close();
- return true;
- }
- }
- } //end verify_Username_and_pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement