php 中使用mysql_real_escape_string时数据被清空的解决办法

786 查看

http://segmentfault.com/q/1010000000151704

其实并不是这个方法的问题而是你的数据库链接报错了!