From c8e228b69d7ce11b86145b5089cb76375cddb917 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 14 Mar 2024 20:29:02 +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 d73ff588..9023a236 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 ORDER BY date DESC"; + $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"; $request = $pdo->prepare($sqlRequest); $request->bindParam(":articleID", $_GET['article']); $request->bindParam(":userAccreditation", $_SESSION['userAccreditation']);