From 5bfdc913a0356df11a7ef7a29be5f877c43d8472 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 12:18:30 +0000 Subject: [PATCH] Update file compte.php --- html/compte.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/compte.php b/html/compte.php index 49aa009d..c91598e1 100644 --- a/html/compte.php +++ b/html/compte.php @@ -249,7 +249,7 @@ if (isset($_FILES['banner']) && $_FILES['banner']['error'] == 0) { prepare("SELECT ID, titre, date, auteur, image, resume FROM articles WHERE (titre LIKE :search OR ID LIKE :search OR auteur LIKE :search) AND classification <= :accreditation AND auteur = :user_id ORDER BY date DESC"); + $req = $bdd->prepare("SELECT ID, titre, date, image, resume FROM articles WHERE (titre LIKE :search OR ID LIKE :search OR auteur LIKE :search) AND classification <= :accreditation AND auteur = :user_id ORDER BY date DESC"); $req->bindParam(":search", $search); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->bindParam(":user_id", $user_id); @@ -266,7 +266,7 @@ if (isset($_FILES['banner']) && $_FILES['banner']['error'] == 0) { echo ''; echo ''; echo '
'; - echo '
n° ' . $row['ID'] . ' | ' . date('d/m/Y', $date) . ' | '. $row['auteur'] . '
'; + echo '
n° ' . $row['ID'] . ' | ' . date('d/m/Y', $date) . '
'; echo ''; echo '
' . $row['titre'] . '
'; echo '
';