开发者

php replace ' character

开发者 https://www.devze.com 2023-01-23 16:59 出处:网络
how can i replace开发者_JS百科 the \' character in php to - in order to save it to mysql database?Use mysql_real_escape_string() !! And remember this function like FOREVERUse parameterized queries.Use

how can i replace开发者_JS百科 the ' character in php to - in order to save it to mysql database?


Use mysql_real_escape_string() !! And remember this function like FOREVER


Use parameterized queries.


Use mysql_real_escape_string($string).

Documentation can be found here: http://php.net/manual/en/function.mysql-real-escape-string.php

0

精彩评论

暂无评论...
验证码 换一张
取 消