Così é un po' più elegante. Prima l'avevo proprio buttata giù di corsa
Codice PHP:
<?php
$res = mysql_query($sql, $conn);
$tot_record = 3
$inc = 0;
while ($row = mysql_fetch_array($res))
{
echo $row['......'];
if ($inc < $tot_record)
{
$inc = $inc + 1;
}
else
{
echo '[img]...[/img]';
$inc = 0;
}
}
?>