Making tables - 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: Making tables (/showthread.php?tid=9169) |
Making tables - El Forum - 06-15-2008 [eluser]Kemik[/eluser] Hey, Say I have a list of 20 items (number is dynamic). How would I get it so that they are split in to three columns? E.g. 1 2 3 4 5 6 7 8 9 ... Thanks Making tables - El Forum - 06-15-2008 [eluser]gtech[/eluser] sure there is a nicer way but this view works Code: <?php Making tables - El Forum - 06-15-2008 [eluser]Pascal Kriete[/eluser] Here's a little helper based on gtech's code. Code: function make_table($arr, $cols = 3) |