diff --git a/html/editpage.php b/html/editpage.php index 1ccdb6b9..48b3620c 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -170,7 +170,7 @@ if(isset($fichier)) { $condition = ""; if(isset($_GET['search'])) { $search = "%" . htmlspecialchars($_GET['search']) . "%"; - $condition = "AND (titre LIKE '" . $search . "' OR ID LIKE '" . $search . "') "; + $condition = "AND (titre LIKE '" . $search . "' OR ID LIKE '" . $search . "' OR auteur LIKE '" . $search . "') "; } $req = $bdd->prepare("SELECT ID, titre, date, auteur FROM articles WHERE classification <= :accreditation " . $condition . "ORDER BY date DESC LIMIT 10"); $req->bindParam(":accreditation", $_SESSION['accreditation']); @@ -188,7 +188,7 @@ if(isset($fichier)) { echo "
" . $row['ID'] . "
"; } } - + echo ""; } ?>