Bug #46913 | Automaticly add back slash when using mysql_real_escape_string() function | ||
---|---|---|---|
Submitted: | 25 Aug 2009 8:33 | Modified: | 28 Aug 2009 9:47 |
Reporter: | Zidong Mo | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S2 (Serious) |
Version: | latest | OS: | Linux (fedora 8) |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql_real_escape_string |
[25 Aug 2009 8:33]
Zidong Mo
[25 Aug 2009 9:23]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php mysql_real_escape_string is to escape strings which you try to insert, not queries itself. I agree example at http://dev.mysql.com/doc/refman/5.1/en/mysql-real-escape-string.html is abit complicated, but you can use example for PHP at http://dev.mysql.com/doc/refman/5.1/en/apis-php-ref.mysql.html#apis-php-function.mysql-rea... This functions works in same fashion here.
[28 Aug 2009 9:47]
Zidong Mo
ok, understood, in that way, all are happy:)