From f1e43b1fbd8b032f3df6e7d64eadc720c34f9548 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 09:51:48 +0000 Subject: [PATCH] Update file index.php --- html/index.php | 1 - 1 file changed, 1 deletion(-) diff --git a/html/index.php b/html/index.php index aea5c2c3..d21c13ff 100644 --- a/html/index.php +++ b/html/index.php @@ -63,7 +63,6 @@ require "../include/functions.php"; $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); $search = isset($_GET['search']) ? "%" . htmlspecialchars($_GET['search']) . "%" : "%%"; $req = $bdd->prepare("SELECT articles.ID, articles.titre, articles.date, articles.image, articles.resume, users.username, users.display_name FROM articles JOIN users ON articles.auteur = users.ID WHERE articles.classification <= :accreditation ORDER BY date DESC LIMIT 3"); - $req->bindParam(":search", $search); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC);