Topic: is there a free country or state database available?

hi, i am building an app and would like users to be able to select what country or state they are from. is there something like a mysql table i can import as suppose to manually inputting everything?

thanks.

Re: is there a free country or state database available?

There is a method called country_select which will give you a list of all countries.

If you want to specify a list of countries that should be top of the list, the third option in the method is called "priority_countries" and would be defined something like this:

country_select("user","country",["Australia","United Kingdom","United States of America"])

As for the state, there is no method to my recollection to find all the states for a given country (I guess this would be handy, but also very large)

Last edited by Radar (2007-10-05 00:13:28)

Re: is there a free country or state database available?

thats cool, thanks!