Hi to all.

I'm in doubt about how to do this (also I couldn't decide in wich subforum should question go, sorry):

I have a thumb gallery site (www.filippeternel.com/gallery.php) which generates thumbs that open lightbox 2 when you click on it. When the lightbox is open, under the image is image name. Under it, I would like to add image descriptions that I wrote. All image descriptions and filenames are in the mysql base. How could I access database and read specific description of the image opened?

I know i should read mysql base from php, but I don't know how to read specific field of the image (thumb) clicked and pass it to lightbox and write it under filename?