Jump to content

table in while loop


karimali831

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/213224-table-in-while-loop/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.