How can I make a gallery read the data of a database from a row and not from a column?

How can I make a gallery read the data of a database from a row and not from a column?. They give a solution in https://www.wix.com/corvid/forum/community-discussion/connecting-gallery-images-to-image-fields-in-database But it’s not working