http://forum.html.it/forum/showthrea...readid=1075392
ho trovato questa conversaione...
codice:<table> <?php $pag=3; $path= "foto"; if (is_dir("$path")) { $handle=opendir($path); while (false!==($file = readdir($handle))) { if ($file != "." && $file != "..") { if($pag==3) {echo"<tr>";} $pag--; echo "<td><img src=\"".$path."/".$file."\"></td>"; if($pag==0) {echo"</tr>";$pag=3;} } } if($pag!=3) {echo"</tr>";} closedir($handle); } ?> </table>
ora, come faccio a fare le varie sezioni a seconda della estensione??

Rispondi quotando