Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dir = scandir("images/");
- $i = 0;
- foreach($dir as $key => $file){
- echo "<a href='images/{$file}'><img src='images/{$file}' style="max-width:200px;max-height:200px;padding:10px;" /></a>";
- $i++;
- if($i%3==0){
- echo "<br />";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement