Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7673867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:36:40+00:00 2026-05-31T16:36:40+00:00

So im making this app where user could add UP to 3 images to

  • 0

So im making this app where user could add UP to 3 images to the restaurants database beside the other information (title, address, etc,..)

What would be the best solution for this?

Uploading:

3 file inputs, adding the image paths to the same database table than other information (3 columns, pic1, pic2, pic3 with image paths)?

or

Separate table for image paths, connected to the main table with ID (how fast is that when handling a lot of data)?

Editing:

Deleting / changing images, but there shouldnt be more than 3. How to deal with that in database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:36:41+00:00Added an answer on May 31, 2026 at 4:36 pm

    Personally I would deal with images in a seperate table

    The images table could hold all the image related data with a second table called user_images or such to join the two together in searches. The user_images table would have three fields like id, user_id and image_id

    This way you can at a later date alter the number of images that a user can upload. This is also a more normalized data structure for your database and allows for much more flexability.

    If you have very large data sets this should be more efficient space wise so long as you optimise your sql queries.

    You can still check that the user does not have more than 3 images by searching the user_images table for all entries with the user_id belonging to any particular user.

    Editing and deleting images is just as simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making and app that you modify images and then you could upload
We're making this web app in PHP and when working in the reports we
I'm making a new Mac OS X application. (not an iPhone app) This is
I am making an app in which i am stuck in this exception -
I am making an app which contains fragments within tabs.In this whenever I try
I am making a menu for an app and was pointed to this useful
I have tough time making this design decision. I could go with traditional new
I'm making my first iPhone app. I could solve most of my problems browsing
I'm currently making an app where the user takes a photo or select it
Background: We have app a, b, and plan to add more apps into this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.