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)

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to