Country State City Dropdown Using PHP, MySQL & Ajax

It's only fair to share...Share on Facebook0Share on Google+0Tweet about this on Twitter0Share on LinkedIn0Pin on Pinterest2Digg thisShare on StumbleUpon0


In this post we are going to explain about Dynamic Selection of Dropdown in PHP and MySql using Ajax and jQuery. Country state and city dropdown mostly used in web application. We load the record dynamically from the database with ajax call without refreshing the whole page.

First we will create a database with 3 tables country, state and city.

 Database Configuration:


 Ajax call for states:

 Ajx call for cities:


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">