Hi,
Just a quick overview - I am creating a basic gallery that displays images that are located in a folder.
The main thing I need help with is how to make it so when a user clicks on the thumbnail, it displays the larger image.
The thumbnail images are located in "images/gallery/flowers/thumbs" and the main larger images are located in "images/gallery/flowers"
The PHP code i have so far is -
<?php
$dirname = "images/gallery/flowers/thumbs"; $images = scandir($dirname); $ignore = Array(".", "..", ".DS_Store"); foreach($images as $curimg){ if(!in_array($curimg, $ignore)) { echo "<img style='vertical-align: middle; float: right'; title='$curimg'; src='images/gallery/flowers/thumbs/$curimg'; /><br>\n"; }; } ?>
Any help would be appreciated and thanks!