From 41a71d83b0e41dbc345d49eacb3e41d780365c48 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 14:35:04 +0000 Subject: [PATCH] Update file editpage.php --- html/editpage.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/html/editpage.php b/html/editpage.php index c75f7505..1f109fd6 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -119,7 +119,7 @@ if(isset($fichier)) { echo "
"; echo "

Articles

"; $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $req = $bdd->prepare("SELECT ID, titre, auteur, date, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC LIMIT 10"); + $req = $bdd->prepare("SELECT ID, titre, date, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC LIMIT 10"); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); @@ -130,10 +130,9 @@ if(isset($fichier)) { foreach($resultat as $row) { echo "

"; echo ""; - echo "

" . $row['titre'] . "

"; - echo "

" . $row['auteur'] . "

"; - echo "
" . $classifications[(int)$row['classification']] . "
"; - echo "
" . $date->format('d/m/Y') . "
"; + echo "
" . $row['titre'] . "
"; + echo ""; + echo "
" . $classifications[(int)$row['classification']] . "
"; } } echo "
";