Passing array of DB results to view - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Passing array of DB results to view (/showthread.php?tid=47117) |
Passing array of DB results to view - El Forum - 11-27-2011 [eluser]Unknown[/eluser] Hi I am new to codeigniter, but pretty excited by what I have seen. I am having a problem passing an array of db results to the view. I know people are going to tell me to put my DB code in my model but that really isn't the issue here. Here is my controller Code: <?php and the view Code: <?php $this->load->view('header'); ?> No matter what format I pass it in I only ever get one result. If I print_r the array the results are there, but when I loop through I only get the 1 result. A little confused :-( Look forward to your help. |