From c31abf0790c993091dcd31d4864be93906586237 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Mon, 11 Mar 2024 15:29:16 +0000 Subject: [PATCH] Update file editpage.php --- html/editpage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/editpage.php b/html/editpage.php index 496cd5d4..1cbcb871 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -172,7 +172,7 @@ if(isset($fichier)) { $search = "%" . htmlspecialchars($_GET['search']) . "%"; $condition = "AND (titre LIKE '" . $search . "' OR ID LIKE '" . $search . "') "; } - $req = $bdd->prepare("SELECT ID, titre, date FROM articles WHERE classification <= :accreditation " . $condition . "ORDER BY date DESC LIMIT 10"); + $req = $bdd->prepare("SELECT ID, titre, date, auteur FROM articles WHERE classification <= :accreditation " . $condition . "ORDER BY date DESC LIMIT 10"); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); @@ -184,6 +184,8 @@ if(isset($fichier)) { echo ""; echo "
" . $row['titre'] . "
"; echo "
" . date('d/m/Y', $date) . "
"; + echo "
" . $row['auteur'] . "
";v + echo "
" . $row['ID'] . "
"; } } echo "";