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

  • SEARCH
  • Home
  • 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 6825517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:02:24+00:00 2026-05-26T22:02:24+00:00

For the site I’m working on, I want a user to have the ability

  • 0

For the site I’m working on, I want a user to have the ability to checkmark multiple boxes that represent things he/she might be interested, similar to StumbleUpon. A user would check ‘web development’ and ‘web design’ then click ‘Submit’, which would then store his preferences in a database.

Later, if somebody created a project that was tagged with one of the preferences he selected, that user would get an update. So if I made a new project that said “Building a Website” and checked the category “web development”, all users who had “web development” selected on their personal profiles would get some kind of message or email alerting them to the newly created topic.

What is the best way to implement this in MySQL format? I looked at some pages on managing hierarchical data (there will be generalized categories like “Computers” or “Music” and an admin will be able to add/delete/edit categories), but none of the methods seemed to be what I needed – at least, not in the way of thinking I’m stuck in. Perhaps there’s an easier answer out there that I’ve been overlooking?

  • 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-26T22:02:25+00:00Added an answer on May 26, 2026 at 10:02 pm

    Create a table containing the various interests. Say

    Interests :- id, interest
    

    Then a table which stores all the interests selected by a user as

    UserInterests :- user_id, interest_id
    

    And a project interest relation as

    ProjectInterest :- project_id, interest_id
    

    Now when a new project is added you can run a query similar to the following onw to get the users that the project is of interest

    SELECT DISTINCT user_id
    FROM UserInterests ui, ProjectInterests pi 
    WHERE ui.interest_id = pi.interest_id AND pi.project_id = <new project id>
    

    Or, using the explicit join syntax:

    SELECT DISTINCT user_id
    FROM UserInterests ui
      INNER JOIN ProjectInterests pi ON ui.interest_id = pi.interest_id
    WHERE pi.project_id = <new project id>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
My site has three columns. I have two fields within a form that need
Site that have nice but raising number of visits / hits, heavily operates on
Site: http://clientfiles.priworks.com/lgmanagedportfolios/test/investment.html I have been working at this web page for a while now
Site here . Why is it that the code works for $('#club').change(function(event) but not
The site I'm currently working on has a series of videos on a carousel
Site structure: / /products /products/design /products/photo /about I want to see parent menu item
Live site. My site is set up so that an image or gallery is
The site I'm working on has a database table filled with glossary terms. I
A site I am working on just exceeded the monthly bandwidth our host provides

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.