Currently my script consits of a page showing albums, within these albums are photos, so when the user views a photo i want it so that they can press next to go the next photo in the album or previous to go to the photo before the current one with in this album.
I dont want the user jumping from one album to another album, simply from photo to photo but it is important to make sure the user stays with in that album.
For example, photos 1,2,3,14,21,26 are in album 1. photos 4,5,6,15,22,26 are in album 2
If the user is viewing album 1 and photo 3, if they then press the next button it should take them to photo 14 if they pressed previous it should take them to photo 2.
I hope this is clear enough it would be great if someone could help me write this code or point me in the right direction.