Table "images" contains information about images of the photo gallery.
"Id" column contains unical numbers of images:
2
3
9
30
56
87
92
96
100
I need a script which shows selected image and thumbs of next 3 images. For example, if script displays image with id "9", next three thumbs will be: 30, 56, 87. The question is about mysql query - in this example the query should select 3 rows starting from id "30".
SELECT file FROM images where approved='1' order by id desc limit ??????, 3
I hope you can understand my question.
Thanks.