i keep get this message every time i run this code can anyone help me figure this out. I am creating a simple search engine using php and phpMy admin here is the code for the connection on a separate page and my php for the search engine
<?php
if(isset($_POST['submit'])){
$search = $_POST['search_name'];
if(!empty ($search)){
$query ="SELECT * FROM Person WHERE LIKE Name LIKE '%".$search."%'";
$result = $con->query($query);
if(mysqli_num_rows($result)>=1){
echo 'results found:';
while($qr=mysqli_fetch_assoc($result)){
echo $qr['Name'].'<br>';
}
}
else {echo'no results found';}
}else{}
}
?>