Puoi fare anche:
Questo solo se ti vuoi complicare la vita.codice:$table = ' <table> %s </table> '; $row = ' <tr> <td> %s </td> <td> %s </td> </tr> '; $query = "La tua query"; $id = mysql_query($query); $_ROWS = ''; $i = 0; while($r = mysql_fetch($query,$id)): if($i==1): $i = 0; $_ROWS .= sprintf($row,$tmp,$r[0]); else: $tmp = $r[0]; //Memorizzo il dato per restituirlo in un secondo tempo $i++; endif; endwhile; $table = sprintf($table,$_ROWS);![]()