5
yarwest
8y

protected $db;

$this->db = new PDO($tooLazy, $toDeclare, $everything);

public function getCoffee() {
$getCoffee = $this->db->prepare('SELECT * FROM Coffee');
$getCoffee->execute();
$result = $getCoffee->fetchAll();
return $result;
}

Comments
Add Comment