From 40338cce93de2423b766a0fa19a3df0f9e9c4dd4 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 14 Mar 2024 20:28:48 +0000 Subject: [PATCH] Update file index.php --- html/news/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/news/index.php b/html/news/index.php index 98d12854..d73ff588 100644 --- a/html/news/index.php +++ b/html/news/index.php @@ -65,7 +65,7 @@ $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlData require_once '../../include/parsedown.php'; $parsedown = new Parsedown(); - $sqlRequest = "SELECT articles.ID, articles.title, articles.date, articles.miniature, articles.resume, articles.author, users.username, users.display_name, users.level, users.profile_picture FROM articles JOIN users ON articles.author = users.ID WHERE articles.ID = :articleID AND articles.classification <= :userAccreditation"; + $sqlRequest = "SELECT articles.ID, articles.title, articles.date, articles.miniature, articles.resume, articles.author, users.username, users.display_name, users.level, users.profile_picture FROM articles JOIN users ON articles.author = users.ID WHERE articles.ID = :articleID AND articles.classification <= :userAccreditation ORDER BY date DESC"; $request = $pdo->prepare($sqlRequest); $request->bindParam(":articleID", $_GET['article']); $request->bindParam(":userAccreditation", $_SESSION['userAccreditation']);