Countries, States and Cities Dropdown Chain with database of world in PHP and Javascript

Countries, States and Cities Dropdown Chain with database of world in PHP and Javascript

0 2,416

This time i am going to give you a very useful database that is countries, states and cities data of world in sql.

Every time when we plan to create a registration form then we stuck on one point that is how can we get list of all Countries, States and Cities of world.

So don’t worry i have solution, I have created mapped database of Countries, States and Cities So now you can easily get mapped .sql file of countries, states and cities from here and can add on your web page as per your requirement.


DEMO

 


DOWNLOAD

 


SQL Files

 

Copy and paste below script to add city state country list in your website

<select name="country" class="countries" id="countryId">
<option value="">Select Country</option>
</select>
<select name="state" class="states" id="stateId">
<option value="">Select State</option>
</select>
<select name="city" class="cities" id="cityId">
<option value="">Select City</option>
</select>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://iamrohit.in/lab/js/location.js"></script>

Note: The support of above script has been closed due to heavy load, Please download full source code and configure it locally in your project..

*This free database dose not guarantee for the complete list of world countries, states and cities.
*You can manually change the spelling mistakes, or add edit any records, which are not correct.

Leave A Reply

Your email address will not be published.