From 53c88ca4ca49d862e7f49d51b8cee55bc77143cf Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 21:33:07 +0000 Subject: [PATCH] Update file journal.php --- html/journal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/journal.php b/html/journal.php index 811044d9..56222351 100644 --- a/html/journal.php +++ b/html/journal.php @@ -55,7 +55,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { echo ""; } else { $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $req = $bdd->prepare("SELECT ID, titre, date, auteur FROM articles WHERE classification <= :role ORDER BY date DESC"); + $req = $bdd->prepare("SELECT ID, titre, date, auteur, classification FROM articles WHERE classification <= :role ORDER BY date DESC"); $req->bindParam(":role", $_SESSION['role']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC);