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

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

WBOY
Release: 2016-06-06 20:51:17
Original
1154 people have browsed it

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上以后才能正常使用

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template