I want to add a search filter in my custom plugin backend

I am developing a plugin.in the backend i want a search filter ,which go through entire table and list the details.

I have simply created a form ,attaching the code here.

 public function SearchSection(){      echo '<p class="search-bx">     <form action="" id="searchForm" method="get">     <label class="searchbar_st" for="#">Search :</label>     <input type="search" id="sbr_search" name="s" value="">         <input type="submit" id="search_submit" class="button" value="Search"></p>         </form>';                 global $  wpdb;          $  table_custom = $  wpdb->prefix . 'my_custom_table';                    //-----------------------------         $  output = '';          if(isset($  _POST['searchForm'])) {           $  search = $  _POST['searchForm'];           $  search = preg_replace("#[^0-9a-z]i#","", $  search);                  $  query = mysqli_query("SELECT * FROM 'my_custom_table' WHERE town LIKE '%$  search%'") or die ("Could not search");           $  count = mysqli_num_rows($  query);                      if($  count == 0){             $  output = "There was no search results!";                  }else{                    while ($  row = mysqli_fetch_array($  query)) {                        $  id = $  row['customers_id'];                 $  Name = $  row['customers_name'];                 $  items = $  row['product_items'];                 $  period = $  row['billing_period'];                 $  amount = $  row['billing_total'];                    $  next = $  row['next_payment_date'];                 $  previous = $  row['previous_payment_date'];                 $  billing_link = $  row['billing_link'];                         echo "<tr>";                          echo "<td><a href=".$  billing_link."> ". $  id ."</a></td>";                 echo "<td>". $  Name ."</td>";                 echo "<td >". $  items ."</td>";                 echo "<td>".$  currency. $  amount.' / '.$  period."</td>";                 echo "<td>". $  next ."</td>";                 echo "<td>". $  previous ."</td>";                 echo "</tr>";                     }             }             else{                 echo "<tr><td cols=an='5'>No records found</td></tr>";             } 

And the code is not correct.Could anybody point me in the right direction.