11 lines
261 B
PHP
11 lines
261 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
class Accomodation extends Model
|
||
|
{
|
||
|
public function getByEmail($email){
|
||
|
$q = Accomodation::$db->prepare('SELECT * FROM Accomodation WHERE UserEmail = ?');
|
||
|
$q->execute(array($email));
|
||
|
return $q->fetch(PDO::FETCH_ASSOC);
|
||
|
}
|
||
|
}
|