To display MySQL table data in Drop Down List we need to mix the Php script with HTML. See the below example how to perform this.
Suppose this is the SQL table with some data
State_Name
|
State_Code
|
Jammu and Kashmir
|
01
|
Punjab
|
02
|
Gujarat
|
03
|
Madhya Pradesh
|
04
|
Mumbai
|
05
|
Goa
|
06
|
Jharkhand
|
07
|
Orissa
|
08
|
Chennai
|
09
|
Andhra Pradesh
|
10
|
Jharkhand
|
11
|
Bihar
|
12
|
West Bengal
|
13
|
Now i will show the state name in Drop Down List