Home >Backend Development >PHP Tutorial >为啥用 mysql_real_escape_string 转义字符串被清空了?

为啥用 mysql_real_escape_string 转义字符串被清空了?

WBOY
WBOYOriginal
2016-06-06 20:51:171171browse

mysql_real_escape_string 为啥我用这个转义
,把字符串清空了。。好尴尬。用 addslashes 就行
php 5.2.8

回复内容:

mysql_real_escape_string 为啥我用这个转义
,把字符串清空了。。好尴尬。用 addslashes 就行
php 5.2.8

mysql_real_escape_string要先成功地通过mysql_connect连接到mysql server上以后才能正常使用

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn