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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:10:07+00:00 2026-06-02T15:10:07+00:00

Although I’ve populated a dropdown list from an SQL database before (along time ago,

  • 0

Although I’ve populated a dropdown list from an SQL database before (along time ago, don’t think I even remember how to do it) I now need some help with populating a dropdown list populated by the SQL database, then depending on what selection is selected, display the next dropdown list populated again by another table in the SQL database.

Can someone please help, ideally with a demo as It’s been a longtime since I’ve done anything SQL.

Thanks

  • 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-02T15:10:09+00:00Added an answer on June 2, 2026 at 3:10 pm

    Very Easy!

    <select name="ALBUM">
        $sql = "SELECT * FROM `PHOTOALBUM` WHERE `USERNAME` = '{$Modules['User']->Username}' ;";
        $RESULTS = mysql_query($sql);
        while($ROW = mysql_fetch_assoc($RESULTS)) {
            echo '<option value="' . $ROW['ALBUM'] . '">' . $ROW['ALBUM'] . '</option>';
        }
    </select>
    

    this is one i use for one of the websites i created. It takes all of your photoalbums and creates a dropdown list of them to choose from when adding photos. hope this helps.

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

Sidebar

Related Questions

Although somewhat related to this question , I have what I think is a
Although I don't have an iPhone to test this out, my colleague told me
Although I played with it before, I'm finally starting to use Dvorak (Simplified) regularly.
Although using SQL FOR XML EXPLICIT is cumbersome, I find myself using it often.
Although my site is still far from done, I've started thinking about web security.
Although I'm primarily interested in Java/GlassFish with this question, I would certainly think it
Although I have some experience in Android development, I don't have a lot of
Although I've used Swing before I've never used a GUI designer and I'm having
Although I'm a complete beginner, I do know how to connect to a database,
Although I specify a ViewFields element in my sharepoint list service's GetListItems query, all

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.