dynamic grid?

dynamic grid?

Hi all,
I need to create a dynamic grid that will display data coming from  a mysql databse.
I need to loop the database records and create the grid dinamycally, but how can I loop a five-column grid?
I'm using dreamweaver cs6 and a php-mysql server model.
TIA for any idea or suggestion.

tony