Educational and Technical contents for everyone who have interest in tech field.
Best tool for web developer (insert whole data in single click in database)
GO TO THIS WEBSITE SIMPLY IMPORT WHOLE EXCEL DATA SHEET AND COPY ALL THE QUERIES AND PASTE IT TO CMD MYSQL CONSOLE OR DIRECT PHP MYADMIN QUERY BOX YOU TABLE WILL BE CREATED SIMPLY RENAME IT ACCORDING TO YOUR NEED.
Ajax dropdown city from selected state from database in php free source code
Using ajax to make dropdown when state and city is selected
- First create page where you have embed or add state and city option(example: state_city.php)
- Then create an differente page from where we will receive response when state option is selected
There is three stages create select options for state and city then take data from server(state data) and display as select option as state, when state option is selected then the value inside state dropdown will go to ajax function to send request to other page, where city date is getting then display this page data as html in state page below;
see the source code you will understand completly.
This is ajax block whice receive data from state option
This page is included in main page where we have to display data
This is select option where we have to display state and then from state to city dropdown
This is city_state.php from where we will get date when user select state in main page