CodeIgniter Forums
Multiple result() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Multiple result() (/showthread.php?tid=28440)



Multiple result() - El Forum - 03-11-2010

[eluser]sqwk[/eluser]
Is it possible to have multiple
Code:
<?foreach($var->result() as $row):?>
on one page?

I need to nest two and am currently getting the Call to a member function result() on a non-object error on the second oneā€¦


EDIT: Solved: Works fine if the results sets themselves are nested. More here: http://ellislab.com/forums/viewthread/87994/P0/