Re: PDO: good, popular?
| From: | Adam Richardson | Date: | Tue, 14 Dec 2010 16:54:56 +0000 |
| Subject: | Re: PDO: good, popular? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310034@lists.php.net to get a copy of this message | ||
On Tue, Dec 14, 2010 at 6:10 AM, Sam Smith <apps@itab.com> wrote:
> Searching for "PHP CRUD" in hopes of learning the best way to access
> databases and to use PEAR or what I came across PDO.
>
> I want to know the communities opinion of PDO: everyone uses it or no one
> uses it or it's great or what?
>
> Thanks
>
I like working with PDO. I use a very thin set of wrapper functions to
automatically grab the connection information from a config file, cause
errors to be thrown as exceptions, and make sure the results are formatted
as arrays. It works very well and relatively fast.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com