title: PHP | From filter to search?
body: <p>I wanted to make a PHP search, but my code works like an filter.
  How can I change/fix it?</p>
  
  
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="block-header"&gt;
   
      &lt;form action="index.php" method="get"&gt;
   &lt;input type="text" name="spieler" placeholder="..."&gt;
   &lt;button class="los" name="search" type="submit"&gt;&lt;i class="fas fa-search"&gt;&lt;/i&gt; Suche&lt;/button&gt;
       
   &lt;h2&gt;
   
      &lt;?php while($row = mysqli_fetch_array($search_result)):?&gt;
   &lt;tr&gt;
       &lt;td&gt;&lt;a style="font-weight:none;"&gt;Name:&lt;/a&gt; &lt;?php echo $row['Name'];?&gt;&lt;/td&gt;
       &lt;td&gt;| &lt;a style="font-weight:none;"&gt;Kills:&lt;/a&gt; &lt;?php echo $row['Kills'];?&gt;&lt;/td&gt;
       &lt;td&gt;| &lt;a style="font-weight:none;"&gt;Deaths:&lt;/a&gt; &lt;?php echo $row['Deaths'];?&gt;&lt;br&gt;&lt;/td&gt;
   &lt;/tr&gt;
      &lt;?php endwhile;?&gt;
   &lt;/h2&gt;
   &lt;/form&gt;
        
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>