Re: Re: mysql_real_escape_string("asdasddas") ??? wtf
| From: | Per Jessen | Date: | Sat, 21 Feb 2009 11:42:53 +0000 |
| Subject: | Re: Re: mysql_real_escape_string("asdasddas") ??? wtf | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288645@lists.php.net to get a copy of this message | ||
Ross McKay wrote:
> It doesn't use the db - at least, it doesn't make a call to the db. It
> probably wants a db resource handle so that it can know what character
> set it is meant to be handling, which is established as a property on
> the connection.
Yep, that's exactly why.
If the current character set is unimportant, you can use
mysql_escape_string() instead. (yes, I know it's deprecated).
--
Per Jessen, Zürich (4.8°C)