I am using CodeIgniter 2.1.0 and MySQL. I want to display a horizontal data row as a vertical one. When I fetch a single row from the database and echo it, it looks like
----------------------------------------
id | name | address | email |
----------------------------------------
1 | Foo | Bar | foo@bar.com |
----------------------------------------
I have used CodeIgniters table library to generate the above table. instead of this, I want it show like this:
------
id : 1
name: foo
address : bar
email: foo@bar.com
-------------------
How do I do this with CodeIgniter 2.1.0?