<?php
if (isset($_REQUEST['search_btn'])) {
$searchbox = $_REQUEST['inputSearch'];
$searchquery = 'SELECT * FROM `userreg` WHERE `userName` LIKE "'."%".$searchbox."%".'" ';
$searchresult = mysqli_query($con, $searchquery);
if(mysqli_num_rows($searchresult)>0){
while($row=mysqli_fetch_array($searchresult)){
}
}
}
?>
"SELECT Title FROM MyData WHERE Title LIKE '%".$search."%'";