/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$dir = 'images'; $dirname = $dir; if ($file != "." && $file != ".." ) { $tableau[] = $file; // variable qui compte le nombre de fichiers dans le dossier } } for ($i = 0 ; $i < $nbr ; $i++) { echo' <img src="'.$dirname.'/'.$tableau[$i].'" class="full" alt=" " width="520" />'; } }
Comments
