I have taken the decision to store all my images in the database for the sole reason it will be easier to backup my db and much less files on the web server.
The problem now is shall I make a single table for all the images using id's to discriminate, or should I set a new field for each table that needs a pic.
Example:
I have machines and makes. The machines have two images (thumbnail and fullsize) and the makes have one (logo). Should I put all three types of images in one table and use a field which seperates them or should I put each one in the table which it is related to.
Thanks.