Topic: build gallery from database ?

PHP gurus,

Is there a simple way to generate a gallery from a database?
I'm very beginner in php and mySql and didnt study buildgallery.php

The goal would be to make an impressive preview from database of an existing webshop.

Thanks.....