database schema - Building a proper table where multiple images will be uploaded per User ID -
i new php , mysql. have gone through , made basic schema relational database pageant website trying make. confused on how set 1 table 7 images (1 headshot , 6 candid shots) uploaded each contestant , thumbnail created each image upon successful upload. images stored in directroy , not in database. want make sure build table correctly application. not sure how create table. right have table set these fields (photoid(pk), yearid(fk), photo, thumbnail)
i think should store entry head shots, , fields like:
(photoid(pk), yearid(fk), headshot(imagename), headshot_thumbnail, candid1_thumbnail, candid2_thumbnail, candid3_thumbnail, candid4_thumbnail, candid5_thumbnail, candid6_thumbnail)
the name of candid images in directory should stored headshot(imagename)_x => x number of candid shot ranging 1 6.
this way not have create new tuple candid shots, corresponding thumbnails stored in table.
Comments
Post a Comment