Guarda l'ho fatto un pò di fretta e forse andrà corretto qualcosa ma penso che sia abbastanza funzionale:
Codice PHP:
<table>
<tr>
<?php
$c=0;
$increment=3;
//innanzitutto conto quanti record ci sono
$query = mysql_query(" SELECT COUNT(ID) As Tot
FROM manager ");
$estract = mysql_fetch_array($query);
$numero_record=$estract['Tot'];
while($c<$numero_record)
{
$video=mysql_query("Select foto FROM manager LIMIT $c,$increment");
while($testo=mysql_fetch_array($video))
{
$foto=$testo['foto'];
echo"<td><img src=\"http://www.mister-white.it/cms/$foto\" width=\"100px\" height=\"75px\" border=\"0\" style=\"margin:1px\"></a></td>";
}
?>
</tr>
<tr>
<?php
$video=mysql_query("Select nome FROM manager LIMIT $c,$increment");
while($testo=mysql_fetch_array($video))
{
$text=$testo['nome'];
echo "<td>$testo[nome]</td>";
}
?>
</tr>
<?php
$c=$c+3;
$increment=$increment+3;
}
?>
</table>
Fammi sapere