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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:33:22+00:00 2026-05-23T09:33:22+00:00

I have a two part question with no code to show, but i hope

  • 0

I have a two part question with no code to show, but i hope you can help:

Essentially, i have a website which lets businesses create a profile for themselves (original table schema here).

Now within the site I want a form with three select lists in it: the first select list is for business catagory/tag – I have managed to create a query which will return entries from my main business registration table by using a Toxi solution.

However i also want a second select list with countries or regions, and a third select list with states/counties which will load automatically BASED on the selection from the Country select list.

Then naturally, on submitting the form, i want to return the results to the visitor.

So, apart from wondering how to achieve this much in PHP/MySQL, i have a more fundamental question about whether to set up the countries/states ‘tagging’ or ‘catagories’ field as another Toxi solution, or if there’s a better way to do it. For instance, should i/can i just create seperate tables to populate the select lists with states/counties based on country selection, and have the actual country and state fields that a business selects on registration, stored within my main business table, and just match the strings when the user hits submit, in order to reduce queries to MySql and improve speed?

As always, your advice and help is greatly appreciated.

Thanks
Dan

  • 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-23T09:33:22+00:00Added an answer on May 23, 2026 at 9:33 am

    Think about the “full name” of a state (or whatever political division is one level narrower than “country”). In the Americas, here are some “full names” of states.

    • California, US
    • Connecticut, US
    • Ontario, CA
    • Sonora, MX
    • Lara, VE

    Base your lists on a two-column table of the full names of states.

    ISO country codes

    The critical point is that your selection lists shouldn’t allow values like “Alabama, MX” or “Sonora, US”.

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

Sidebar

Related Questions

I have a two part question Best-Practice I have an algorithm that performs some
Ok so part two of I have no will power experiment is: Summary Question
had a two part question with regard to below contrived c++ code snippet :
This is a two part question. I have a class that gets all processes
This is a two part question, but I want to make sure the first
Let's say i have two tables in db: Car and Part. Car owns arbitrialy
So let's say I have two different functions. One is a part of the
I have two arrays of System.Data.DataRow objects which I want to compare. The rows
This is a two part question: Part 1 First, dealing with calculating the entropy
This question actually has two parts. The first part: I've been developing my first

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.