Re: PEAR DB - Useful?
From: Jan Pieter Kunst (devnull_at_cauce.org)
Date: 01/08/05
- Next message: kicken: "Re: PEAR DB - Useful?"
- Previous message: Digital_simulator: "Re: PHP-GTK Looks interesting"
- In reply to: ryan_at_carsonworkshops.com: "PEAR DB - Useful?"
- Next in thread: kicken: "Re: PEAR DB - Useful?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 08 Jan 2005 11:54:40 +0100
ryan@carsonworkshops.com wrote:
> What are people's thoughts on this class? IMHO, it seems like it's
> overkill for what most developers need.
>
> I've been using it for awhile now, and I tend to use only about 3% of
> it's functionality.
>
> Thoughts? Opinions?
I use it and like it, even if the part I like is only ..% of its
functionality. What I like:
- central error reporting, no "or die()" all over the place
- nice shortcuts for getting single values or arrays in one pass,
without looping (getOne(), getCol(), getAssoc())
- automatic escaping of values with prepared statements:
$query = 'insert into table (field1, field2) values(?,?)';
$pear_db_object->query($query, array($raw_data1, $raw_data2));
JP
-- Sorry, <devnull@cauce.org> is a spam trap. Real e-mail address unavailable. 5000+ spams per month.
- Next message: kicken: "Re: PEAR DB - Useful?"
- Previous message: Digital_simulator: "Re: PHP-GTK Looks interesting"
- In reply to: ryan_at_carsonworkshops.com: "PEAR DB - Useful?"
- Next in thread: kicken: "Re: PEAR DB - Useful?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|