diff --git a/html/editpage.php b/html/editpage.php index 35d89a3b..16b5f175 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -179,7 +179,7 @@ if(isset($fichier)) { $search = "%" . htmlspecialchars($_GET['search']) . "%"; $condition = "AND (titre LIKE '" . $search . "' OR ID LIKE '" . $search . "' OR auteur LIKE '" . $search . "') "; } - $req = $bdd->prepare("SELECT ID, titre, date, auteur, image, resume FROM articles WHERE classification <= :accreditation " . $condition . "ORDER BY date DESC LIMIT 10"); + $req = $bdd->prepare("SELECT ID, titre, date, image, resume FROM articles WHERE classification <= :accreditation " . $condition . "ORDER BY date DESC LIMIT 10"); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); @@ -192,7 +192,7 @@ if(isset($fichier)) { 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 '
';