Update file editpage.php

This commit is contained in:
Jan BELLON 2024-03-11 15:25:31 +00:00
parent 6fc95c21b5
commit cefdb2ea42

View File

@ -167,7 +167,7 @@ if(isset($fichier)) {
echo "<form action='' method='get'><input type='text' placeholder='Article' name='search'><input type='submit' value='Rechercher'></form>";
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
$condition = ""
$condition = "";
if(isset($_GET['search'])) {
$search = "%" . htmlspecialchars($_GET['search']) . "%";
$condition = " AND (titre LIKE " . $search . " OR ID LIKE " . $search;