3 ms·
MySQL is very similar to PHP in this regard. The good function name is actually broken so a new function with similar name is needed. This creates confusion for
by didip 5y ago
MySQL is very similar to PHP in this regard. The good function name is actually broken so a new function with similar name is needed. This creates confusion for new people when adopting the technology.
- egeozcan 5y agoOh the good old "mysql_real_escape_string"[0] days... I forgot most of my PHP knowledge but that somehow got stuck. [0]: https://www.php.net/manual/en/function.mysql-real-escape-string.php https://www.php.net/manual/en/function.mysql-real-escape-str...
- duskwuff 5y agoYou can blame MySQL for that one. The function name is straight out of the MySQL C API: https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-escape-string.html https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-escape-str...