在PHP高版本的空间使用帝国备份王会出现
mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead
这样的错误,如何解决呢?元素模板为您解答
本地测试环境是php5.4+mysql5.60,用帝国备份王备份数据库,结果出错,提示下面的错误代码:
PHP Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in E:\wwwroot\piaoyun.cc\ebak\class\functions.php on line 912
PHP Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in E:\wwwroot\piaoyun.cc\ebak\class\functions.php on line 912
PHP Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in E:\wwwroot\piaoyun.cc\ebak\class\functions.php on line 912
解决办法:
搜索帝国备份王所在目录文件夹,找到fuctions.php,在912行
找到函数:
mysql_escape_string
修改为:
mysql_real_escape_string
再次备份数据库就不再提示错误了。