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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:28:00+00:00 2026-06-12T19:28:00+00:00

I am pretty new to MySQL and databases but I’m trying to learn :)

  • 0

I am pretty new to MySQL and databases but I’m trying to learn 🙂

I’ve set up a database with 2 tables right now. The first of them, user_info, contains a list of users for an online app, as well as their account information, such as; username, password, first and last names. It also has a column labeled “list_access” for another table.

The second table, word_lists, is a set of rows/records. Each column will contain a single word (other than the first column being the primary key/id column). The idea is that the app will check the user’s data in their account information, and see which word records they have access to, then pull the word lists into the app into an array.

Is this an effective way to set this up? What type of data should the column in the user_info table, in the list_access column be? I’m having a hard time figuring out how to have that list which ones would be accessible, and then have it verify which ones to pull from. Would that be something typically handled by the app, or by a php script?

I really appreciate any help as it has been a slow process piecing everything I’ve learned together so far.

  • 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-06-12T19:28:02+00:00Added an answer on June 12, 2026 at 7:28 pm

    If you have one column in the user_info table for list_access, think about what you’re going to store in it:

    1. a single word_list ID
    2. a list of word_list IDs, e.g. “1,2,3,4”.

    Item #1 is bad because it goes against your requirements to check “which word records” to use.

    Item #2 is bad because you’ll have to always be joining/splitting/merging that list together and you can never have referential integrity.

    What you really want is a cross reference table that joins the user to the word list, like this:

     CREATE TABLE user_word_lists (
         user_id int unsigned not null,
         word_list_id int unsigned not null
     )
    

    This table would have multiple rows for each user. Setup the foreign keys to the two source tables, and put in the indexes you’ll need (certainly user_id).

    Hope that helps.

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

Sidebar

Related Questions

I'm pretty new to MYSQL. I'm trying to write a query which will search
I've done a fair bit of mysql php programming but am pretty new to
I'm trying to create a completely new database from an existing MySQL database, bringing
I am pretty new to PHP and MySQL and I just can't figure this
Im pretty new to Java Web Services, but I cant find a good explanation
I'm pretty new to PHP, but I decided to try and make a simple
I'm querying a very large activity log in a MySQL database, trying to figure
I'm sorry in advance if this question is flawed. I'm pretty new to databases(I
I'm pretty new to php but i'm learning pretty fast, I have a question
I am pretty new to both php and mysql. I have a txt file

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.