Transfer to git

This commit is contained in:
2026-02-03 19:37:38 -03:00
commit 9ffbd90a82
136 changed files with 5798 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
function retrieve_chat_history(object $pdo){
$query = "SELECT username, content, date_sent FROM comments;";
$stmt = $pdo->prepare($query);
$stmt->execute();
$chat_history = $stmt->fetchAll(PDO::FETCH_ASSOC);
$stmt = null;
$query = null;
return $chat_history;
}