Fill list with a query of the database

0

I have the following code:

        <td>MES:<br>
            <select id="mes" name = "mes" >
                <option value = "1"  <%if PMES="1" then %> selected <% end if%> >ENERO</option>
                <option value = "2"  <%if PMES="2" then %> selected <% end if%> >FEBRERO</option>
                <option value = "3"  <%if PMES="3" then %> selected <% end if%> >MARZO</option>
                <option value = "4"  <%if PMES="4" then %> selected <% end if%> >ABRIL</option>
                <option value = "5"  <%if PMES="5" then %> selected <% end if%> >MAYO</option>
                <option value = "6"  <%if PMES="6" then %> selected <% end if%> >JUNIO</option>
                <option value = "7"  <%if PMES="7" then %> selected <% end if%> >JULIO</option>
                <option value = "8"  <%if PMES="8" then %> selected <% end if%> >AGOSTO</option>
                <option value = "9"  <%if PMES="9" then %> selected <% end if%> >SEPTIEMBRE</option>
                <option value = "10"  <%if PMES="10" then %> selected <% end if%> >OCTUBRE</option>
                <option value = "11"  <%if PMES="11" then %> selected <% end if%> >NOVIEMBRE</option>
                <option value = "12"  <%if PMES="12" then %> selected <% end if%> >DICIEMBRE</option>
            </select>
        </td>

Is it possible that not to put all the information of the months can make a connection to the database and with a query fill that list?

    
asked by ARR 22.06.2018 в 23:20
source

0 answers