开发者

php replace ' character

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜