Login   Register  
PHP Classes
elePHPant
Icontem

classListbox: Generate form select inputs from database queries

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-10-16 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,190 All time: 2,959 This week: 1,541Up
Version License Categories  
classlistbox 1.0GNU General Public Lice...HTML, Databases
Description Author  

This class can be used to create form select inputs from MySQL database query results, similar to ASP.NET listbox control.

The class can execute a given MySQL dquery that extracts the option names and the respective values. Then it generates a form select input with the given values. A given value can be displayed as the initially selected value.

Optionally, the class may also generate the necessary Javascript code to make the form of the input be automatically submitted when the user changes the input value.

Picture of Carlos Miguel Guevara
Name: Carlos Miguel Guevara <contact>
Classes: 3 packages by
Country: Mexico Mexico
Age: 33
All time rank: 3444 in Mexico Mexico
Week rank: 1135 Down11 in Mexico Mexico Down

  Files folder image Files  
File Role Description
Plain text file classListbox Class the class file
Accessible without login Plain text file estilo.css Data style sheet
Accessible without login Plain text file example.php Example example
Accessible without login Plain text file mydatabase.sql Data the database for the example
Accessible without login Plain text file readme.txt Doc. Notes of usage

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,190All time:2,959
 This week:0This week:1,541Up
 User Comments (1)  
 
Excellent
5 years ago (kishore kumar)
80%StarStarStarStarStar