title: PHP result set display format
body: <p>Hi i have a query which will result three rows of results at present. I need to show them in some way but i am not able to show like that. Can you give me some idea how i need to approach it.</p>
  
  <p>I will have all the result set in an array from database.</p>
  
  <pre><code>1. client name |RO NO |  channel  
  2. a           | abc  |   x
  3. a           | abc  |   y
  4. a           | abc  |   z
  </code></pre>
  
  <p>Result set look like above but i need to display it like below in a table</p>
  
  <pre><code>1. client      a
  2. RO         abc  
  3. Channel     x,y,z
  </code></pre>
  
  <p>I don't want repeat which are common in each row. How should i do it. Can any one give me idea how to proceed...</p>