pdo = $pdo; } public function sendThese() { $sql = 'SELECT * FROM theses'; $req = $this->pdo->query($sql); while($row = $req->fetch()) { echo "

" . $row['author'] . " | " . $row['title'] . "

"; } $req->closeCursor(); } }