Zend - The PHP Company




Code Gallery: rayray


Create dynamic select boxes from a database with this function  

Type: code fragment
Added by: rayray
Entered: 02/08/2000
Last modified: 08/12/1999
Rating: **** (7 votes)
Views: 22792
This function allows you to pass in:
  • name
  • table
  • SQL statement
  • id
to generate a select box dynamically. Optionally you can pass in an $id to have it create a select box with a specific value set as "selected".




Search