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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:58:56+00:00 2026-06-13T23:58:56+00:00

How do I link or add the field with all my users called username

  • 0

How do I link or add the field with all my users called “username” from my main table to another table so I can run checks and compare values without having to add a ton of rows to my main table? This would be a much cleaner and more organized setup.

Table called login_users. This is my main table that stores their basic information

username       email                 password
Anthony        user@email.com
Josh           user@email.com
Tsuyoshi       user@email.com

Table 2 called badge_status. This table will hold their status with whether or not they have unlocked an achievement on my site. I want to bring in the usernames.

username       badge1               badge2
Anthony        locked               unlocked
Josh           unlocked             locked
Tsuyoshi       unlocked             locked

Also, could table 2 automatically be updated with a new user when they sign up since all new sign ups are imported into the first table. As a side note, I am using phpmyadmin.

Thanks for any help with getting this set up. Very much appreciated.

  • 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-13T23:58:58+00:00Added an answer on June 13, 2026 at 11:58 pm

    I think you should normalize your data by using the following schema instead:

    • login_users [Table]
      • username
      • email
      • password
    • badges [Table]
      • BadgeId int PRIMARY KEY
      • BadgeName
      • … (any other relevant columns)
    • users_badges [Table]
      • username (foreign key constraint to username column on the login_users table)
      • BadgeId (foreign key constraint to BadgeId column on the badges table)

    This will allow you add as many badges as you want without having to ever change your database schema or scripts.

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

Sidebar

Related Questions

I m trying to add the first link from the post content to a
I am creating a forum application in mvc3... I have a link called Add
Interesting dilemma here. I need the ability for users to add links from their
i have form where i have text box value and link (add). when user
I have a page index.php where i have a link called add_users.php. In add_users.php,
I want to be able to add new sections (via the 'add' link) and
I'm having problems adding a new table row by clicking the link_to_add function link.
If i have img element id = myimg. Is posible to add link to
In below link there is add button which allows you to ADD multiple textbox
I'd like to add a link to the end of some text that is

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.