Update file editpage.php
This commit is contained in:
parent
c31c2edcb3
commit
f863b34a7b
@ -170,7 +170,7 @@ if(isset($fichier)) {
|
|||||||
$condition = "";
|
$condition = "";
|
||||||
if(isset($_GET['search'])) {
|
if(isset($_GET['search'])) {
|
||||||
$search = "%" . htmlspecialchars($_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 = $bdd->prepare("SELECT ID, titre, date, auteur FROM articles WHERE classification <= :accreditation " . $condition . "ORDER BY date DESC LIMIT 10");
|
||||||
$req->bindParam(":accreditation", $_SESSION['accreditation']);
|
$req->bindParam(":accreditation", $_SESSION['accreditation']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user