Confused how to loop to produce tables side by side - 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: Confused how to loop to produce tables side by side (/showthread.php?tid=14369) |
Confused how to loop to produce tables side by side - El Forum - 12-30-2008 [eluser]Unknown[/eluser] HI there all. I am new to codeigniter/php and I am confused as to where/ how to loop through the results to give two tables side by side what I have now is very standard, I query the database and return the results except for those with "ongoing impacts". The results are then passed to the view and displayed. I believe it will require a loop and splitting the results into two? Any help would be appreciated. I believe the code should be in the controller? Currently: Table 1 -------- Table 2 Desired Result: Table 1 | Table 2 This is my code in my controller Code: <?php This is the code in the view Code: <html> Confused how to loop to produce tables side by side - El Forum - 12-31-2008 [eluser]obiron2[/eluser] I would suggest this is a job for DIVs and CSS |