ho modificato il tutto ksì;
---------------------------------------------------------
$query = "select * from.......";
$result = mysql_query ($query) or die .....;
$numero_righe=mysql_num_rows($result);
echo "<center><table border=2 style=\"border-collapse: collapse\" width=480><center>";
while($a_row=mysql_fetch_array($result))
{
$my_array = array($a_row['photo']);
$divide = 3;
for ($j = 0; $j <= floor(count($my_array)/$divide); $j++)
{
print "<tr>";
for ($i = $j*$divide; $i < ($j+1)*$divide && $i < count($my_array); $i++)
{
print "<td bordercolor=\"#999999\">";
print ($my_array[$i]);
print "</td>";
}
print "</tr>";
}
}
---------------------------------------------------------
ma nn funge.....