Escape ze string
This commit is contained in:
parent
6392799410
commit
e8d9197b96
|
@ -31,8 +31,8 @@ if(isset($_GET["q"]))
|
|||
|
||||
|
||||
}
|
||||
|
||||
$stmt = $pdo->prepare("select * from SavedVideo where Title like '%$search%' LIMIT ".strval($offset*20).", 20");
|
||||
$mySearch = $pdo->quote("%".$search."%");
|
||||
$stmt = $pdo->prepare("select * from SavedVideo where Title like $mySearch LIMIT ".strval($offset*20).", 20");
|
||||
$stmt->execute();
|
||||
$videos = $stmt->fetchAll();
|
||||
|
||||
|
|
Loading…
Reference in New Issue