4 ms·
mysql_real_escape_string is only deprecated because there is mysqli_real_escape_string. I always wondered why it's "real"...like is there "fake" version of it?
by garaetjjte 10mo ago
mysql_real_escape_string is only deprecated because there is mysqli_real_escape_string. I always wondered why it's "real"...like is there "fake" version of it?
- cess11 10mo agoYes. https://www.php.net/manual/en/function.mysql-escape-string.php https://www.php.net/manual/en/function.mysql-escape-string.p... https://stackoverflow.com/questions/3665572/mysql-escape-string-vs-mysql-real-escape-string https://stackoverflow.com/questions/3665572/mysql-escape-str... One hardly even tries to do the thing it says on the tin, the other one at least tries to be the real thing. None of them worked very well, however.