Creating a drop down list box using data from MySQL table We can get the options or the list items of a dropdown list box from a mysql table. Here is my php code where I tried to plot two graphs, one for all years and next for selection by year. 3. ''; } } ?>