From 2e28420d2aaad2958bfe08613fae70b8cca1d510 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 15:50:59 +0000 Subject: [PATCH] Update file news.php --- html/news.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/html/news.php b/html/news.php index b7d0484f..cd325861 100644 --- a/html/news.php +++ b/html/news.php @@ -58,12 +58,12 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { $resultat = $req->fetchAll(PDO::FETCH_ASSOC);; if ($resultat) { - $date = new Datetime($row[0]['date']); - echo "
" . $row[0]['ID'] . "
"; - echo "
" . $row[0]['titre'] . "
"; + $date = new Datetime($resultat[0]['date']); + echo ""; + echo "
" . $resultat[0]['auteur'] . "
"; + echo "
" . $resultat[0]['classification'] . "
"; } echo "
"; echo $parsedown->text($markdownContent);