Re: PEAR::DB == || != DBA
| From: | Eric Stewart | Date: | Fri, 02 Apr 2004 16:41:01 +0000 |
| Subject: | Re: PEAR::DB == || != DBA | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11595@lists.php.net to get a copy of this message | ||
I was looking for the string escape with in the actual mysql file and I totally missed methods in the common classes. Thanks for the heads up. And thanks for the heads up about the date, it hadn't occurred to me that I was not abstracting that part of the application and it really should be.
Thanks for everyone's input.
Eric Stewart
On Apr 2, 2004, at 11:03 AM, Paul M Jones wrote:
On Apr 2, 2004, at 9:57 AM, Eric Stewart wrote:After taking a hard look at database abstraction and choosing PEAR::DB as my abstraction layer tool. It occurred to me that this does not quite fit the bill. The main problem being escaping strings before insertion and selection.I think DB::quoteSmart() is supposed to properly escape and enquote strings for various databases in their specific ways. Is quoteSmart() not doing it for you? -- Paul M. Jones Savant: the simple alternative to Smarty. http://phpsavant.com/ -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php