Displaying values in a list/menu edit format

I have an edit page that has a list/menu on it. I need that list/menu to access the database and have the proper value initially selected. here is the base of my list/menu.


<select name="d_1" size="1" id="d_1">
                      <option value="1">On</option>
                      <option value="0">Off</option>

in my database there is a 0 so i need it to default to the “Off” value