jeudi 26 février 2015

Need to store Multiple Images into MySQL


I am trying to build my own little eCommerce CMS, and i want the expert opinion on how to handle multiple uploaded files (images).


For Example:


A user adds a new item, fills the necessary form data and selects (nth) number of images and submits. I want to know how should i handle those images data into MySQL.


one thought i have in mind is that i create a separate table item_images Where i assign an ID or something like Item Code which inputs by the user and that Item Code will be the Identification for all the images?


Please advice.





Aucun commentaire:

Enregistrer un commentaire