PHP Classes

Database Combo Box: Generate form select inputs from database queries

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 43%Total: 439 All time: 6,263 This week: 56Up
Version License PHP version Categories
db-combo-box 1.0BSD License5HTML, PHP 5, Databases
Description 

Author

This is a simple class that can generate form select inputs from database queries.

It can connect to a given MySQL server and execute SQL SELECT query to retrieve the values of two given fields of a certain table that match a given condition.

The class can generate HTML for a form select input that presents options with values and titles taken from the two fields returned in the query results.

Picture of Mohammad Keramatifar
  Performance   Level  
Name: Mohammad Keramatifar <contact>
Classes: 4 packages by
Country: Iran Iran

Screenshots (1)  
  • dbComboBox.jpg
  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file categories.sql Data Database Table Sample
Plain text file class.dbComboBox.php Class main dbComboBox class
Accessible without login Plain text file Example.php Example Example of Usage

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:439
This week:0
All time:6,263
This week:56Up
User Ratings User Comments (2)
 All time
Utility:62%StarStarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:3581