Hi,
I'm new to php and I need help in creating small php gallery, my script in php, which takes all the pictures from a folder and creates the image gallery on the main page, and when the image is pressed a new page should open with this picture (I succeeded in this), and navigation between the other images (I'm stuck here, I do not know how to implement).
So I download all the images from the folder and displayed as a gallery in this way:
<?php
foreach (glob("images/*.jpg")as $filename)
{
echo "<li><a href=\"slideshow.php?filename=$filename\"><img src=$filename /></a></li>";
}
?>
In this way a picture is displayed in new page:
<?php $image = $_GET['filename'];
echo "<img src=$image />";
?>
</li>
Can you help me in implementation of navigation between all images in folder. thanks.