Update file editpage.php
This commit is contained in:
parent
6fc95c21b5
commit
cefdb2ea42
@ -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>";
|
echo "<form action='' method='get'><input type='text' placeholder='Article' name='search'><input type='submit' value='Rechercher'></form>";
|
||||||
|
|
||||||
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||||
$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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user