Code Comments
Programming Forum and web based access to our favorite programming groups.Scratch the last request...I was able to get it...took about 5 lines of code. THANKS AGAIN!! -----Original Message----- From: UpFront Technology [mailto:upfronttechnology@rrohio.com] Sent: Saturday, March 06, 2004 3:27 AM To: Smarty Post Subject: RE: [SMARTY] Re: Forms Validation and Generation w/database thanks..could you give an example please? -----Original Message----- From: Manuel Lemos [mailto:mlemos@acm.org] Sent: Friday, March 05, 2004 9:15 PM To: smarty-general@lists.php.net Subject: [SMARTY] Re: Forms Validation and Generation w/database 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 -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.