Ecco, l'ho fatto io per te:
codice:<table width="600" border="1" cellpadding="3" cellspacing="0" bordercolor="000000"> <tr> <td width="200" height="50">ID</td> <td width="200">NOME</td> <td width="200">COGNOME</td> </tr> <?PHP $i = 1; for ($count = 0; $count < 11; $count++) { echo "<tr>\n <td height=\"50\">" . $count . "</td>\n <td>Nome " . $count . "</td> <td>Cognome " . $count . "</td> </tr>"; if ($i % 3 == 0) { echo "</table>\n <table width=\"600\" border=\"1\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"000000\">\n <tr>\n <td width=\"200\" height=\"50\">ID</td>\n <td width=\"200\">NOME</td>\n <td width=\"200\">COGNOME</td>\n </tr>\n"; } $i++; } ?> </table>

Rispondi quotando