This is a simple class for generating HTML form select inputs with options defined from data retrieved from a MySQL database table.
The class takes the name of the select input and the name of a MySQL table to query as required parameters.
The class generates a form select input using the value of the first column of the query result as input option value and the value of the second column as the option text.
Optionally, the class may also take as parameters:
- Name of the table field to sort the query
- Sorting ascending or descending criteria
- CSS class name to define the presentation details of the input field
- Value of the option to selected by default |