Uploading multiple images

I am creating a photo book app. Is it possible to upload multiple photos at the same time in one field?

1 2 1,502
2 REPLIES 2

What you want is a one-to-many relationship. For this you will need two tables:

  1. Your parent table, [photo_book]
  2. Your photos table, [photo_book_photos]

Table [photo_book_photos] will need at least 3 columns:

  1. A primary key, [id]
  2. A foreign key to the parent table, [photo_book_id]
  3. a column to store the photo, [photo]

Set column [photo_book_id] as a REF type to the parent table, and you should be able to add as many photos as needed.

Steve
Platinum 4
Platinum 4

No.

Top Labels in this Space