Gallery connection to database

I have a database where each row has up to 5 images
I created a dynamic page and I want to connect a gallery to display those 5 images (columns) but I can select only one column
Is there a way to solve it?

Hi,
Some code is required.
Check out this thread:

Roi.