:quote: pure è veroOriginariamente inviato da pireda
Innanzitutto, sai come recuperare i dati dal DB?
Codice PHP:<table border="0" width="100%">
<?
$query = mysql_query("SELECT * FROM tabella");
$i = 1;
while ($row = mysql_fetch_object($query)) {
if (($i%4) == 1) { echo "<tr><td width=\"25%\">$row->dato</td>"; }
elseif (($i%4) == 0) { echo "<td width=\"25%\">$row->dato</td></tr>"; }
else { echo "<td width=\"25%\">$row->dato</td>"; }
$i++;
}
?>
</table>



Rispondi quotando