How to bind dropdownlist in PHP?

From this article you can learn how to bind dropdownlist in php? or how to make dynamic dropdownlist.In this example I have created one table and then populating data into dropdownlist.Below code is useful for make dynamic dropdown.