Codice PHP:<table border="1" width="100%" border="1">
<tr>
<?php
$i = 1;
while ($row = mysql_fetch_array($result)){
echo "<td>{$row[$i]}</td>";
if($i % 4 == 0)
{
echo "</tr><tr>";
$i = 0;
}
$i++;
}
?>
</tr>
</table>
Codice PHP:<table border="1" width="100%" border="1">
<tr>
<?php
$i = 1;
while ($row = mysql_fetch_array($result)){
echo "<td>{$row[$i]}</td>";
if($i % 4 == 0)
{
echo "</tr><tr>";
$i = 0;
}
$i++;
}
?>
</tr>
</table>