Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2.  
  3.     class user extends connection {
  4.  
  5.         function __construct($user, $pass) {
  6.             $this->username = $user;
  7.             $this->password = $pass;
  8.         }
  9.        
  10.         function login() {
  11.             $this->data = $this->connection->prepare("SELECT * FROM gyms WHERE email = :email");
  12.             $this->data->bindParam(':email', $this->username);
  13.             $this->data->execute();
  14.             return $this->data->rowCount();
  15.         }
  16.        
  17.     }
  18.    
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement