[Phpwm] Escape hell II
Rob Allen
rob at akrabat.com
Mon Jul 3 09:35:04 BST 2006
alan dunn wrote:
> Thank you all for your input.
> I got a solution based around array_walk and addslashes. But Dave
> Goodwin mentioned escape_string (in my case pg_escape_string) and in the
> manual it says use of escape_string is recommended in preference to
> addslashes.
>
> Anyone know why, or what the differences are?
>
mysql_real_escape_string() takes account of character encoding. See
http://shiflett.org/archive/184 for details. I assume that
pg_escape_string does something similar.
Regards,
Rob...
More information about the Phpwm
mailing list