Re: Sqlbuilder from post variables
| From: | Justin Patrin | Date: | Fri, 31 Dec 2004 21:59:40 +0000 |
| Subject: | Re: Sqlbuilder from post variables | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16545@lists.php.net to get a copy of this message | ||
On Fri, 31 Dec 2004 14:54:09 +1100 (EST), daniel@electroteque.org
<daniel@electroteque.org> wrote:
> Is there such a package that can be used to build sql from post variables ?
> I have built a function which will do inserting, updating and deleting from
> form variables, ie the form vars are the fieldnames, i can remove certain
> post vars to pre-format , ie date lists with day, month, year, can add
> extra sql functions etc ? I use it also for generating sql for reporting or
> searching. Let me know thanks.
>
DB_DataObject is one of a few SQL builder packages in PEAR. (DB_Table
is another. I think there are others.) There is also
DB_DataObject_FormBuilder which creates HTML_QuickForm forms for
updating and inserting records as well as supporting lots of
customization.
--
Justin Patrin