if(isset($_POST['submit'])){
if($_POST['search']){
$word = $_POST['search'];
$name = "%$word%";
$sql_2 = "SELECT * FROM video WHERE title LIKE ? ORDER BY id DESC";
$stm = $pdo->prepare($sql_2);
$stm->execute(array($name));
$stm->fetch(PDO::FETCH_ASSOC);
}
}