title: how convert column data into row
body: <p>This is a pic of my table a need convert date column in header in my view of codeigniter and want to show that on a date student present/absent.</p>
  
  <p><a href="https://i.stack.imgur.com/zg8tf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zg8tf.jpg" alt="enter image description here"></a></p>
  
  <p>I want to format the data like this:</p>
  
  <pre><code>|DATE/NAME|  12/11/16  | 13/11/16  | 14/11/16  | 15/11/16  | 16/11/16  |  
  |Lokesh   |  HD        | HD        | HD        | HD        | HD        |
  |LLLL     |  HD        | HD        | HD        | HD        | HD        |
  |LLLLLL   |  HD        | HD        | HD        | HD        | HD        |
  </code></pre>