Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class user extends connection {
- function __construct($user, $pass) {
- $this->username = $user;
- $this->password = $pass;
- }
- function login() {
- $this->data = $this->connection->prepare("SELECT * FROM gyms WHERE email = :email");
- $this->data->bindParam(':email', $this->username);
- $this->data->execute();
- return $this->data->rowCount();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement