From 0efedc61073125b7b3135746792c089ad04b96f9 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 14:34:46 +0000 Subject: [PATCH] Update file news.php --- html/news.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html/news.php b/html/news.php index b8dbfc1e..7eee3538 100644 --- a/html/news.php +++ b/html/news.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, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC"); + $req = $bdd->prepare("SELECT ID, titre, date, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC"); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); @@ -68,7 +68,6 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { echo ""; echo "
" . $row['titre'] . "
"; echo "
" . $date->format('d/m/Y') . "
"; - echo "
" . $row['auteur'] . "
"; echo "
" . $classifications[(int)$row['classification']] . "
"; } }