title: Multiple query data into single HTML Table (PHP, MySQL)
body: <p>Here is my current code. I'm trying to display data from three separate queries into a single table with multiple columns. Is my while statement wrong here? It's printing 1 table data, then the one after, instead of next to it in the same row.</p>
  
  <pre><code>echo "&lt;table border='1'&gt;
  &lt;tr&gt;
  &lt;TH COLSPAN=2&gt;July 2010&lt;/TH&gt;
  &lt;TH COLSPAN=2&gt;August 2010&lt;/TH&gt;
  &lt;TH COLSPAN=2&gt;September 2010&lt;/TH&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;th&gt;User&lt;/th&gt;
  &lt;th&gt;Posts&lt;/th&gt;
  &lt;th&gt;User&lt;/th&gt;
  &lt;th&gt;Posts&lt;/th&gt;
  &lt;th&gt;User&lt;/th&gt;
  &lt;th&gt;Posts&lt;/th&gt;
  &lt;/tr&gt;";
  
  while (($row = mysql_fetch_assoc($july)) || ($row2 = mysql_fetch_assoc($aug)) || ($row3 = mysql_fetch_assoc($sept))) {
  echo "&lt;tr&gt;";
  echo "&lt;td&gt;" . $row['cUsername'] . "&lt;/td&gt;";
  echo "&lt;td&gt;" . $row['postCount'] . "&lt;/td&gt;";
  echo "&lt;td&gt;" . $row2['cUsername'] . "&lt;/td&gt;";
  echo "&lt;td&gt;" . $row2['postCount'] . "&lt;/td&gt;";
  echo "&lt;td&gt;" . $row3['cUsername'] . "&lt;/td&gt;";
  echo "&lt;td&gt;" . $row3['postCount'] . "&lt;/td&gt;";
  echo "&lt;/tr&gt;";
  }
  
  echo "&lt;/table&gt;";
  </code></pre>