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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:23:29+00:00 2026-05-27T23:23:29+00:00

In an application I’m working on there is a select menu which has options

  • 0

In an application I’m working on there is a select menu which has options such as Pending, Active, Inactive. I’d like to allow users to create their own custom options to include in these menus. They should be allowed to add edit and delete their own custom options but not the system defaults. What would a good normalized mysql schema look like for this?

  • 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-27T23:23:30+00:00Added an answer on May 27, 2026 at 11:23 pm

    Have a look at this post and especially at this resource: http://www.billsternberger.net/jquery/dynamically-add-dropdownlist-option-using-jquery/

    It’s very simple and does what you want (except for deleting, but that shouldn’t be hard to implement :))

    Concerning the table structure, I’s suggest to have a table for the select entries that could have following fields:

    select_id (int 11), value (varchar 255), added_by_user (int 1)
    

    where added_by_user does not specify the user but tells if it was added by a user.
    And in the users table, you could add the field select_id as a foreign key.
    Now you can tell, if an entry was added by a user, and if so, by which user.

    That’s pretty basic, but as I said, it’s just one way of doing it (and the way I do it :)), and you get the idea.

    //EDIT:

    If you want a user to be able to have more than one entry, the entries table should, of course, contain the users_id as a foreign key (and not the other way around as it is in the case above):

    select_id (int 11), value (varchar 255), added_by_user (int 1), user_id (int 11)
    

    Depending on how the user_ids are handled (e.g. user with ID = 0 is admin or something) the added_by_user field might be obsolete here.

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

Sidebar

Related Questions

Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which
Application : I am working on one mid-large size application which will be used
Application : It has 3 views Views A,B,C. There is a Alert on View
Application has an auxiliary thread. This thread is not meant to run all the
my application has the following database structure: Transactions: - TransactionID (PK, Identity) - Type
my application has the following structure: public class Transaction { public int TransactionID {
Application is a C# .Net 3.5 WCF Service. I'd like during the build process
APPLICATION DESCRIPTION : I am a new iPhone developer. I am working on an
APPLICATION and ENVIRONMENT Java EE / JSF2.0 / JPA enterprise application, which contains a
Application has a tabhost managed through TabActivity. It has option to add tabs at

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.