Hi!
I am currently making a really simple photo blog. The query fetches every reference to the images which are stored on the server. I have a problem when it comes to dynamically cycling through these though.
After running the query, I store each image reference in a twodimensional array like this: [["id"], ["date"], ["title"], ["filename"]] (an Array of Arrays).
The image displays just fine by doing this:
$pointer; //starting from the last element (image) in the array
<img src="images/gallery/<?php echo $images[3][$pointer] ?>" alt="<?php echo $images[2][$pointer] ?>">
The problem is that, when I update the pointer, say for instance pointer++, the current image on the screen doesnt update. I know for a fact that the pointer updates, because I have echoed it.
The basic idea is to have a previous and next link just under the image, so that the viewer can cycle the available images.
Any help is greatly appreciated