🚚 Added project files to the repository.

This commit is contained in:
Florian SYLVAIN
2021-09-17 11:37:30 +02:00
parent c2030cbf42
commit 6a4e5c6427
8 changed files with 919 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
class dump {
private PDO $pdo;
/**
* @param PDO $pdo
*/
public function __construct(PDO $pdo) {
$this->pdo = $pdo;
}
public function sendThese() {
$sql = 'SELECT * FROM theses';
$req = $pdo->query($sql);
while($row = $req->fetch()) {
echo "<p>" . $row['author'] . " | " . $row['title'] . "</p>";
}
$req->closeCursor();
}
}