andz Posted May 10, 2008 Share Posted May 10, 2008 Hello. Any help for this problem will be appreciated. I need to have a codes that will show records in 3 column format. See example below. Example:: Result 1 | Result 2 | Result 3 Result 4 | Result 5 | Result 6 Result 7 | Result 8 | Result 9 Any code that will show up the same result as above. thank you. Quote Link to comment https://forums.phpfreaks.com/topic/105008-solved-view-records-in-3-column-format/ Share on other sites More sharing options...
Daniel0 Posted May 10, 2008 Share Posted May 10, 2008 <?php $array = range(1, 9); foreach ($array as $i => $item) { echo $item; if (($i+1) % 3 == 0) { echo "\n"; } else { echo ' | '; } } ?> 1 | 2 | 3 4 | 5 | 6 7 | 8 | 9 Quote Link to comment https://forums.phpfreaks.com/topic/105008-solved-view-records-in-3-column-format/#findComment-537490 Share on other sites More sharing options...
andz Posted May 10, 2008 Author Share Posted May 10, 2008 Thanks for the helped. It worked. I need it to show a bunch of records with checked box on it. Quote Link to comment https://forums.phpfreaks.com/topic/105008-solved-view-records-in-3-column-format/#findComment-537501 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.