19 Jun
2007
19 Jun
'07
2:53 p.m.
Mark Shropshire wrote:
What is the best or preferred method for building the array for options in a select form item? The data would be coming from a database table that just holds the items for the dropdown. I know how to hard code the options, but would prefer to keep these in a db table for easy updating.
Thanks, Mark
Just query the db (db_query()) when you are building the select box for your form.