sourab

How can i get ID of each image. I am passing images form SQL and
each image has ID. how can i pass ID along with image.
e.g if i pass 10 images to slide show and on clicking to right say
we stop on image no 5. how can i get ID of selected images.
Hope this makes sense. If you need further information, do let me
know.