title: Showing rows in table headers
body: <p>I have a table like</p>
  
  <pre><code>id       course       activities   
  
  1     Microbiology      Quiz1
  2     Microbiology      Quiz2
  3     Microbiology      Quiz3
  4     Microbiology      Quiz4
  </code></pre>
  
  <p>I need to show in php file as table header</p>
  
  <pre><code>Quiz1   Quiz2   Quiz3    Quiz3  Quiz4
  </code></pre>
  
  <p>And this is my code</p>
  
  <pre><code>&lt;?php
  $sql = mysql_query('SELECT * FROM activity');
  while($row = mysql_fetch($sql))
  {
      $activities $row['activities'];
  }
  echo '&lt;table&gt;
         &lt;tr&gt;
          &lt;th&gt;'.$activities.'&lt;/th&gt;
         &lt;/tr&gt;
       &lt;/table&gt;';
  ?&gt;
  </code></pre>