Home > Archive > PHP Smarty Templates > March 2004 > Forms Validation and Generation w/database
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Forms Validation and Generation w/database
|
|
| Upfront Technology 2004-03-19, 1:28 pm |
| Hello,
Can anyone inform me whether Forms Validation and Generation class by M.
Lemos supports MySQL arrays in the "Options" array?
thanks
J. Evans
UpFront Technology
| |
| Manuel Lemos 2004-03-19, 1:28 pm |
| Hello,
On 03/05/2004 07:28 PM, Upfront Technology wrote:
> Can anyone inform me whether Forms Validation and Generation class by M.
> Lemos supports MySQL arrays in the "Options" array?
Sure, if you fetch them.
You may want to try this other class that was meant to integrate
databases with the forms class. It has a function to retrieve arrays for
the form select options as you need. The class was meant to access
databases via Metabase for database independence and so it supports
MySQL, but of course you are free to hack the class to use MySQL native
functions directly:
Class: Database access class
http://www.phpclasses.org/databaseaccess
Class: Database access class
http://www.phpclasses.org/metabase
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
|
|
|
|
|