To create a drop down list in HTML we have to use select element in HTML and the option tag which will define the available options in the dropdown list to select with. How to update checkbox value in PHP MySQL. The city id is the primary key. Now after that we are submitting the current drop down list selected item directly into MySQL db table on Submit button click. Here, we are fetching data from the database and displaying it into the drop down menu. Solution: This method has the efficiency to fill data in a drop-down list from the MySQL database. $sql = “SELECT * FROM carstype ORDER BY sno ASC”; PHP will receive this data to prepare the SELECT query. Does anybody know where I can get such a script/database from? Fetching data from a MYSQL database and inserting them into a HTML drop-down list. I've looked it up a lot online, but all of those are about fetching data from a database to be used as options in a drop-down list and that's not really what I … Steps5: Drop Down Selection Data Load with jQuery Ajax Now in getData.js JavaScript file, we will handle drop down selection change event to get selected value and make Ajax request to server getEmployee.php to get selected employee details from MySQL database table employee. Populate multiple dropdown lists using Ajax, jQuery, PHP and MySQL In this tutorial, I will teach you how to Populate Drop Down List From Database Using PHP and MySQLi.