Re: Fwd: Re: About DB_common->quoteString()
| From: | Paul DuBois | Date: | Mon, 02 Jul 2001 23:47:09 +0000 |
| Subject: | Re: Fwd: Re: About DB_common->quoteString() | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-536@lists.php.net to get a copy of this message | ||
At 6:44 PM -0500 7/2/01, Paul DuBois wrote:
At 11:56 PM +0200 7/2/01, Bas van Rooijen wrote:Another question about quoteString() : should it produce a literal NULL (no quotes) when handed an unset value? Or is there some other convention for producing NULLs in query strings?Sorry, just found out attachments do not work. http://www.xs4all.nl/~bvr/php/mysql.php http://www.xs4all.nl/~bvr/php/mysql4.05.phpBoth versions are better than the current quoteString() for purposes of the MySQL driver. However... PHP has mysql_escape_string(), which is specifically intended for this kind of quoting. Wouldn't it be better for the MySQL driver to overload quoteString() with a method that calls mysql_escape_string() ?
-- Paul DuBois, paul@snake.nethttp://www.xs4all.nl/~bvr/php/sybase.php Bas van Rooijen.-- Paul DuBois, paul@snake.net