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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:55:26+00:00 2026-05-14T00:55:26+00:00

i have downloaded whole database from geonames.org and imported all countries into mysql. i

  • 0

i have downloaded whole database from geonames.org and imported all countries into mysql.

i wonder how i can get the continent, country, state, county when i got a city’s id?

cause i want to make a cascading list menu with these information.

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-05-14T00:55:26+00:00Added an answer on May 14, 2026 at 12:55 am

    Looking things over, all the data that you are asking for appears to exist in their dataset. The exact query you are looking for should be pretty easy to come up with assuming that you imported everything in a relatively straightforward fashion.

    Basically, you’ll need to join the geonames table against the admin1codes and admin2codes tables as they contain State and County information respectively. You’ll also need to create a table to store continent information and join against that table also. Then, you merely have your query match a specific city and connect all your joins.

    If you haven’t already, I’d recommend looking through their FAQ forum:

    http://forum.geonames.org/gforum/forums/show/6.page.

    There are posts there detailing importing the data into just about every major database, and also some information about chaining drop down lists.

    If you have a more specific question, please post here so we can help.

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

Sidebar

Related Questions

I have downloaded Skype4COM from Skype so my question is, can i integrate it
I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this
I have downloaded a web project from CodePlex and am getting the following error
I have written a code for downloading a file(blob in database table).I get a
I have written the following code for inserting video bytes into the database DBAdapter.java
I have downloaded an auto completion(jQuery script) form from net. I am using wamp
I'm trying to connect to the MySql database from a Java servlet. I'm working
i have an access front end. the backend is a sql server database. can
I have been trying to display image from database using php but i am
have downloaded Orca to edit an MSI file. I want to remove some banner

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.