Как искать как в php
"SELECT Title FROM MyData WHERE Title LIKE '%".$search."%'";
HB Rage
"SELECT Title FROM MyData WHERE Title LIKE '%".$search."%'";
<?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)){
}
}
}
?>