i have this script dat works well..it displays all the images found in a directory on a page(thumbnail images)..and clicking on each image shows the image on its larger size...the problem is dat now i need to make appear the image in the center of the page..
and add back and next buttons on the page..
can someone gimme an idea of how this can be done?
i tried doin it but i end up displaying all the images on dat directory in the same page instead of displaying image by image..
i hope im clear.
thank u
display of images
Moderator: General Moderators
Maybe you could load all the images filenames into an array, then display one image from the array, with the links
They you just have to
Code: Select all
<?php
print "<a href=\"thispage.php?showimage=".($showimage - 1)."\">Previous Image</a>
<a href=\"thispage.php?showimage=".($showimage + 1)."\">Next Image</a>
?>Code: Select all
<?php
print "<img src=\"".$imagearray[$showimage]."\" alt=\"blah blah\" />";
?>