phaedrusGhost 0 Junior Poster in Training

Hi all.

So I have a site where I need to display uploaded images for properties. There could be anywhere from none to several images of one property.

I have each image going to it's own folder based on address. Should I call on those images directly from the folders or store the image names in a database?

If I store the image names in a database what is the best way to create rows on the fly for each image so I can call on them later for display?

The most important thing is security to avoid any sql injections and the like.

Any help on this is greatly appreciated.