3 ms·
No, that's not true. That function name was copied directly from the MySQL C API. It was not added by PHP. https://dev.mysql.com/doc/refman/5.5/en/mysql-real-e
by duskwuff 8y ago
No, that's not true. That function name was copied directly from the MySQL C API. It was not added by PHP.
https://dev.mysql.com/doc/refman/5.5/en/mysql-real-escape-string.html https://dev.mysql.com/doc/refman/5.5/en/mysql-real-escape-st...
- bradleyjg 8y ago“You can use this function safely with your MySQL database queries if and only if you are sure that your database connection is using ASCII, UTF-8, or ISO-8859-* and that the backslash is your database's escape character. If you're not sure, then use mysqli_real_escape_string instead. This function is not safe to use on databases with multi-byte character sets.”