PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have an array of images and I'm trying to create a next button so that when next is clicked the page displays the next image in the array. I'm calling the image by it's keyid and trying to increment this each time the next button is pressed. At the moment though it only works for the first time it's pressed after that nothing happens. This is the code I'm using:
Hi, thanks for the help. I've tried to change the code by introducing a counter variable so that it increments properly I still seem to have the same problem but I can't see why. Could you have another look at it?
The problem is that the page this would be on is called from another page using include() but the condition for the include is a variable which is determined by the URL.