I need to split a very vertically long table!!

liunx

Guest
Here :

<!-- m --><a class="postlink" href="http://74.57.73.48:8080/applications/joueurs_autonomes.php">http://74.57.73.48:8080/applications/jo ... onomes.php</a><!-- m -->

I want to put this table in 3 or 4 columns since u have to scrolll for a hour to reach the end. My table is generated with php like this :

<table border="2" bgcolor="#666666" style="color:#333333" title="Joueurs d'avant">

<tr bgcolor="#999999" style="font:bold">
<td>Nom</td>
<td>鑰甧</td>
<td>Salaire</td>
<td>Overall</td>
</tr>


<?php
for ($a=0; $a<$i; $a++) {
?>
<tr bgcolor="#999999">
<td><?php echo $tab_joueurs_avec_compensation[$a] -> nom_complet; ?></td>
<td align="center"><?php echo $tab_joueurs_avec_compensation[$a] -> age_joueur; ?></td>
<td align="center"><?php echo $tab_joueurs_avec_compensation[$a] -> salaire_joueur; ?></td>
<td align="center"><?php echo $tab_joueurs_avec_compensation[$a] -> overall; ?></td>
</tr>

I figured a way but it seems complicated and I'm pretty sure there is a simple way to do a so simple thing. I tought of putting a div with float left property and in my php script, to check when $a is equal to 30. When it is, I draw another table next to the first one etc.

Thx in advance!You're better off introducing some pagination to your PHP script.euh... sorry but ???

What do you mean with pagination?

:(Instead of showing all the records on one page, break it up into several pages. When you first load the page, it only shows records 1 - 50, for instance. Then there are links to all the remaining pages of results. Like search results on a search engine like Google.Oh, i see and that's a good idea..

Still strange that there is no <table> attribute that "break" it into multiple column...

Thanks for ur advice!
 
Back
Top