Extracting data from a result() array of objects. |
[eluser]intractve[/eluser]
There are two options in CI for multiple rows, result() and result_array() take the following as the case result id value allowed 1 foo true 2 bar false 3 tasty true in your controller the result set is got by Code: $query = $this->db->get('table'); Now your view has the variable $rows Then in your view you can do Code: <table> Will print out a table with the above values. A guide for the alternate syntax used above is here PHP Alternate Syntax Hope this helps. |
Messages In This Thread |
Extracting data from a result() array of objects. - by El Forum - 12-16-2009, 06:26 PM
Extracting data from a result() array of objects. - by El Forum - 12-16-2009, 06:37 PM
Extracting data from a result() array of objects. - by El Forum - 12-17-2009, 10:06 AM
|