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 7705077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:48:25+00:00 2026-05-31T23:48:25+00:00

I have an application with images stored in multiple categories, currently being stored by

  • 0

I have an application with images stored in multiple categories, currently being stored by category ID in a column as a space separated list (eg. 1 5 23 2).

I have a query from a search filter, which is currently an array of IDs, (eg. 1 5).

Ideally, I’d find a solution using something like WHERE IN that would see if any of my array values exist in the stored column, although I don’t see an easy solution.

At the moment I have to query all the images, bring them into PHP and check there, using “array_intersect”. I see this as being a problem if I have 100,000s of images in the future to pull and then check.

Can anyone think of an elegant solution? The application is still in development, so I could arguably change the structure of my tables.

  • 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-31T23:48:26+00:00Added an answer on May 31, 2026 at 11:48 pm

    I think adding a map table would probably be best here which maps the image_id with the category_id.

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

Sidebar

Related Questions

We have an application that will capture different images from users and make them
I have web application of which major part is javascript. I request images from
I have multiple projects with directory structure like this: /application/ /images/ /js/ /css/ /system/
I have a requirement where I want images to be stored/retrieved from a single
I have an application that stores images in a database. Now I have learned
I have an application which manipulates high resolution images (something around 100+ megapixels), and
I have an application that sends an HTML formatted email with embedded images. The
We have an application that allows users to add/edit/replace/delete content (text, images, swfs, mp3s,
I have a small application in java which searches images using bing image search.
I have set up a Django application that uses images. I think I have

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.