title: Statements after while loop not executing
body: <p>I am trying to remove a user from the mailing list right before I perform the emailing to my users. However, the code responsible for this within the second <code>while</code> loop is not executing. </p>
  
  <p>Can somebody see why this is?</p>
  
  <pre><code>&lt;?php
  $query = "SELECT * FROM remove_request";
  $result = mysqli_query($dbc,$query);
  if($result-&gt;num_rows &gt; 0){
      while($row = $result-&gt;fetch_assoc()){
          $query = "DELETE FROM mail_table WHERE first_name='" . $row["first_name"]
              . "' AND last_name='"     . $row["last_name"]
              . "' AND email_address='" . $row["email_address"] . "'";
          $result = mysqli_query($dbc,$query);
          echo $row["first_name"] . ' has been removed from the mail list.';
      }
  }
  
  $query = "SELECT * FROM mail_table";
  $result = mysqli_query($dbc,$query) or die('Error querying database');
  if($result-&gt;num_rows &gt; 0){
      while($row = $result-&gt;fetch_assoc()){
          mail($row["email_address"],$subject,$message,$headers);
          echo 'email sent to ' . $row["first_name"] . "\n";
      }
  }
  mysqli_close($dbc);
  ?&gt;
  </code></pre>