After much research and hair pulling I have managed to get my photos
uploaded, resized and have created thumbnails which are stored in a separate
directory. All the required information about the uploaded files including
the paths are stored in a Mysql database.

My problem now is that when I retrieve all the thumbnails in a category I
can only display them in a single column. I would like to display them in 4
or 6 columns with as many rows as required, can someone help a newbie