Re: Forms Validation and Generation w/database
| From: | Manuel Lemos | Date: | Sat, 06 Mar 2004 02:15:23 +0000 |
| Subject: | Re: Forms Validation and Generation w/database | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11068@lists.php.net to get a copy of this message | ||
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