search keyword not found any result :   I want to search **keyword like %$keyword%** than the resulting black . not show result missing PHP code. I have one table 'ads_post' and use field cat_name, city_name please check it and help me...




**search-result.php** 
  

    <?php 
        if(isset($_GET['submit'])){
    
        	$keyword = $_GET['keywoed'];
    
        	$query = "select * from ads_post where cat_name like '%$keywoed%' or city_name like '%$keywoed%'";
        	
           $result = mysqli_query($conn, $sql);
        
           if (mysqli_num_rows($result) > 0) {
    
              while($row = mysqli_fetch_assoc($result)) {
    
                 echo "cat Name: " . $row["cat_name"]. "<br>";
    
              }
           } else {
    
              echo "0 results";
    
           }
    
           mysqli_close($conn);
        } 
          ?>


**html form here** 


 

    <form action="search-result.php" method="get" >
    
           <input class="form-control"  name="keyword" placeholder="Search any keyword..?">
    
           <input type="submit"   value="search">
    
     </form>