title: Populate an html table columwise with mysql data
body: <p>I have a MySQL query that returns data using PHP.
  My problem is that I need to populate my html table (with 3 columns) with the data returned by the query but the data should be populated Columnwise.
  Like first the first column should be populated .. then the second and finally the third one.</p>
  
  <p>Also I would like to know that is it possible to do so for an unlimited set of data?</p>
  
  <p><img src="https://i.stack.imgur.com/dO40r.png" alt="enter image description here"></p>
  
  <p>Following the screen shot of the desired layout</p>