public function getUID($email)
    {
        $query = "SELECT id FROM {$this->config->table_users} WHERE email = :email";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['email' => $email]);

        if ($query_prepared->rowCount() == 0) {
            return false;
        }

        return $query_prepared->fetchColumn();
    }
public function getUID($email)
    {
        $query = "SELECT id FROM {$this->config->table_users} WHERE email = :email";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['email' => $email]);

        if ($query_prepared->rowCount() == 0) {
            return false;
        }

        return $query_prepared->fetchColumn();
    }
public function getUID ( $ email ) { $ query = "SELECT id FROM {$this->config->table_users} WHERE email = :email" ; $ query_prepared = $ this -> dbh -> prepare ( $ query ) ; $ query_prepared -> execute ( [ 'email' => $ email ] ) ; if ( $ query_prepared -> rowCount ( ) == 0 ) { return false ; } return $ query_prepared -> fetchColumn ( ) ; }
Gets UID for a given email address, return int
@param string $email
@return int $uid
Gets UID for a given email address return int