Excuse me, because my english isn't good! In this code I obtain 1 photo on a row! I want to obtain 5 photos on a row! Could you help me? Thank you very much!
Code:
<?php
while($row=mysql_fetch_array($res1))
{
$number = $row['photos'];
?>
<table cellpadding="20">
<tr>
<?php
for ($i=1; $i<=$number; $i++)
{
$adressphoto="photos/squadre/".$row['name']."/mici/".$i.".jpg";
if (file_exists($adresaphoto))
{ print "<td>";
print'<img src="'.$adressphoto.'">';
print '</td>';
print '</tr>';
}
}
print '</table>';
}