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