Hi to all!
It's the first time i'm doing a gallery, so my intentions are to display all images from a folder first as thumbnails in a 4 column order, I know how to do this adjusting the script below.
I would like now if one of the thumbnails is selected to display the original image and be able to click next and previous buttons so I can go forwards or backwards thru all images in the folder, and when I get to the end of images in a folder stop displaying "Next" button or simply start at the beginning again.PHP Code:
$files = glob("images/*.*");
for ($i=0; $i<count($files); $i++)
$num = $files[$i];
echo '<img src="'.$num.'" alt="random image" />'."<br /><br />";