Best database setup for image uploads
Posted on 2016-11-01
I haven't yet got to learning how to upload images in php but I need to soon for a project. I was just wondering though what the best way to store details in the database would be. For arguments sake, let's say a user can upload as many images as they want for a particular product.
Should there be a table just for product images e.g.:
Then the images will be associated with the product ID.
Or is there another way of doing it that would be the "norm"?