我正在使用 CodeIgniter 2.1.0 和 MySQL。我想将水平数据行显示为垂直数据行。当我从数据库中获取一行并回显它时,它看起来像
----------------------------------------
id | name | address | email |
----------------------------------------
1 | Foo | Bar | foo@bar.com |
----------------------------------------
我已经使用 CodeIgniters 表库来生成上表。而不是这个,我希望它像这样显示:
------
id : 1
name: foo
address : bar
email: foo@bar.com
-------------------
如何使用 CodeIgniter 2.1.0 做到这一点?