Re: dynamically building insert/update forms from db

From: Date: Fri, 14 May 2004 20:16:40 +0000
Subject: Re: dynamically building insert/update forms from db
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-186254@lists.php.net to get a copy of this message
Ben Ramsey wrote:
CB> I believe there is a PEAR library package that does this. You might CB> want to do some research to see if it fits your needs. Yes, there is. Check out PEAR::DB or PEAR::MDB which both have good classes for preparing INSERT and UPDATE statements, as well as for finding out information about what columns and datatypes a table has (which is what I think you are most interested in). These are really easy-to-use classes, too. Then, I would also suggest checking out the PEAR::HTML_QuickForm class, as it has functions you can use to generate HTML forms.
BTW, DB_DataObject_FormBuilder uses DB and HTML_QuickForm to automate this for you . ;-) -- paperCrane <Justin Patrin>

« previous php.general (#186254) next »