Codice PHP:

<?php
$i
=0;
while(
$row mysql_fetch_array($result))
{
    
$i++;

// Variabili utili
$testo $row_img_news['testo'];

if(
$i==1){
    echo 
'<tr>';
}
echo 
"<td>$testo</td>";

if(
$i==3){
echo 
'</tr>';
$i=0;
}
}
echo 
'</table>';
?>