Re: packages that use deprecated SQL escape functions
2009-10-16, Ben Finney:
> Raphael Geissert <geissert@debian.org> writes:
>
> > FTR, in php 5.3 the mysql_escape_string function is marked as
> > deprecated (and depending on the error reporting level it will warn)
> > and in php6 it is gone.
>
> Reference, please? I'd like to know what function is recommended to
> replace this one.
>
According to php.net [0], they recommend to use 'mysql_real_escape_string'
instead [1]. Note that mysql_real_escape_string behaves a little bit different
from mysql_escape_string, though.
[0] http://ar2.php.net/mysql_escape_string
[1] http://ar2.php.net/manual/en/function.mysql-real-escape-string.php
Saludos,
Mauro
--
JID: lavaramano@jabber.org | http://lizaur.github.com/
2B82 A38D 1BA5 847A A74D 6C34 6AB7 9ED6 C8FD F9C1
Reply to: