PHP Classes

Combo Box: Generate HTML form select inputs from MySQL data

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 40%Total: 4,014 This week: 1All time: 781 This week: 560Up
Version License Categories
select 1.0.0Freely DistributableHTML, Databases
Description 

Author

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

Picture of Mumi Mania
Name: Mumi Mania <contact>
Classes: 1 package by
Country: ???
Age: 50
All time rank: 773
Week rank: 416 Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file combo_box.conf.php Conf. config
Accessible without login Plain text file combo_box.example.php Example example
Plain text file combo_box.php Class class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,014
This week:1
All time:781
This week:560Up
User Ratings User Comments (2)
 All time
Utility:56%StarStarStar
Consistency:60%StarStarStarStar
Documentation:-
Examples:63%StarStarStarStar
Tests:-
Videos:-
Overall:40%StarStarStar
Rank:3732
 
Good approach.
15 years ago (Bill Norton)
70%StarStarStarStar
Thanks for building such an option.
16 years ago (zenis)
67%StarStarStarStar