karimali831 Posted September 12, 2010 Share Posted September 12, 2010 Hi, When I use the below table in a while loop, it will repeat down the page. I want it to repeat in rows of 3, how can I do this? while () { echo ' <table width="50%" cellpadding="2" cellspacing="1" bgcolor="'.$border.'"> <tr > <td colspan="5" height="20" align="center" class="title" bgcolor="'.$bghead.'"><b>'.$pt['platform'].'</b></td> </tr> </table>'; } Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/213224-table-in-while-loop/ Share on other sites More sharing options...
wildteen88 Posted September 12, 2010 Share Posted September 12, 2010 Have a look at multi-column results Quote Link to comment https://forums.phpfreaks.com/topic/213224-table-in-while-loop/#findComment-1110287 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.