title: PHP - How to get all rows from a MySQL Query
body: <p>This is my code: </p>
  
  <pre><code>if($login_check &gt; 0) {
      $results = mysql_query("SELECT * FROM messageInfo WHERE senderUsername='$username' UNION ALL SELECT * FROM messageInfo WHERE recieverUsername='$username';");
      var_dump(mysql_fetch_assoc($results));
  
  }
  </code></pre>
  
  <p>I'm getting only one row "var_dumped", when I should be getting two rows returned.</p>