From b92e36da5f59c267efb4f9f5313e240b7f6d7d5a Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 18:53:28 +0000 Subject: [PATCH] Update file news.php --- html/news.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/news.php b/html/news.php index b04c24a7..61ec2fb0 100644 --- a/html/news.php +++ b/html/news.php @@ -69,7 +69,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { echo ""; } else { $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $search = isset($_GET['search']) ? htmlspecialchars($_GET['search']) : "" + $search = isset($_GET['search']) ? htmlspecialchars($_GET['search']) : ""; $req = $bdd->prepare("SELECT ID, titre, date FROM articles WHERE classification <= :accreditation AND titre LIKE '%:search%'ORDER BY date DESC"); $req->bindParam(":search", htmlspecialchars($_GET['search'])); $req->bindParam(":accreditation", $_SESSION['accreditation']);