Re: Re: mysql_real_escape_string("asdasddas") ??? wtf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux