Im using Dreamweaver CS4 and am still fairly new to web developement (recently acquired my adobe dw cs3 ace)

I am trying to create a 4x4 web page gallery using ASP Javascript and MS Access. I insert a master detail page into a 4 colum table that repeats 4 times. I then extended the table and duplicate the code to another 3 colums. The problem is that when I duplicate the code it also duplicates the images.

What I am ideally trying to create is a different image in each cell which is retrieved from the database.

The only programming experience that I have is Java from highschool. I have looked at the code and am a bit confused by it.

This is probably a common question, I have googled a bit but havnt really found any help.

Thanks in advance,