I am creating a photo gallery. All my photos are stored in folders for each event/party/gig etc.
If iw ant to showcase them would I be best creating a single index file which lists all the files within that folder and writes an img tag which points to a thumbnail.php file which generates a thumbnail.
OR
have a single page which pulls all the records from a MySQL database and echos them out?
Im not sure whether the pros of one out weighs the cons of the other.
If i used a file based system then it would always be correct and all I would have to do is FTP the files to their particular folder et voila. But if i wanted to change the design id have to go about altering each index.php file.
However, if i chose to use the MySQL system then i could change the design quickly and easily. but there would be a larger margin for error and inaccuracies and i couldnt have a very deep file structure.
any suggestions as to which path i should follow?