title: Delete query removes same records in any row
body: <p>In my code, sql query deletes the record in table with same name. For example, I have 2 records with same name mani &amp; mani. This code deletes 2 records.</p>
  
  <p>form Code:</p>
  
  <pre><code>&lt;form method="post" action="admin.php"&gt;
  &lt;h3&gt;Delete a user&lt;/h3&gt;
  &lt;select name="username"&gt;
    &lt;?php
    $sql = mysqli_query($connection, "SELECT username FROM users");
    while ($row = $sql-&gt;fetch_assoc()){?&gt;
    &lt;option value="&lt;?php echo $row['username']; ?&gt;"&gt;&lt;?php echo 
    $row['username']; ?&gt;&lt;/option&gt;
    &lt;?php }?&gt;
  &lt;/select&gt;
  &lt;input type="submit" name="delete" value="Delete User"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Sql </p>
  
  <pre><code>&lt;?php 
  include('connect.php');
   if(isset($_POST['delete'])) {
    $username = $_POST['username'];
     mysqli_query($connection, "DELETE FROM `users` WHERE `username` = '$username' ");
     echo "User was deleted!";
  }
  ?&gt;
  </code></pre>