PHP5.4下帝国备份王提示错误PHP Deprecated: mysql_escape_string()的解决办法

纸扎戏偶

我的本地测试环境是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 再次备份数据库就不再提示错误了。

文章版权声明:除非注明,否则均为我爱教程术原创文章,转载或复制请以超链接形式并注明出处。