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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:26:55+00:00 2026-06-18T12:26:55+00:00

I had a hard time giving this question a title, i hope im clear

  • 0

I had a hard time giving this question a title, i hope im clear enough.
Im using PHP & HTML with a MYSQL Database.

See I have a member site, where every new member gets a randomly chosen football player as their avatar. The football player avatar is assigned from a folder named ‘avatars’.
Once the user is registered, the avatar is moved to a folder named ‘used_avatars’. Every image is named as the football player, because i want to display the name of the chosen player on the users member page.

Here’s the real question: I want to add a flag representing the players nationality on the member site. But I have several Brazilian players and only one Brazilian flag. How do i pair my 5 players with the one flag. I was thinking of naming the images “brazil-ronaldo”, “brazil-carlos” and then in some way in PHP separating the country from the name and match them with a flag and a avatar. Does this make sense? Is there any better way of doing this?
I guess I need to create a new table in my database that keeps record of flag and avatar match?

  • 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-18T12:26:56+00:00Added an answer on June 18, 2026 at 12:26 pm

    Hope this helps:

    You need a table for players containing field for a nationality id and a table with nationalities with the names for the flags.

    This way you can select the player and join the nationality via the id.

    All you have to do then is save the player id in the user “profile”.

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

Sidebar

Related Questions

I had a hard time coming up with a title for this question, but
I had a hard time coming up with a title, so I hope this
Had a hard time coming up with a concise title for this. I'm sure
I had a hard time phrasing my question's title. Basically here's the problem: I've
Please forgive the awkward title. I had a hard time distilling my question into
I asked this question before, but had a hard time showing which edits I
Although the Title might not make sense (I had a hard time describing this
(Sorry if this is a repeat question, I had a hard time thinking of
This might be a simple question, but I've had a hard time pinning down
I had a hard time framing that question. I hope it gets the gist

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.