0

Call to undefined function mysql_escape_string()

annabelle 发布于1年前 阅读数 2242

PHP版本

P 7.0.18-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.18-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
举报
回复
0

PHP7 已经把mysql扩展去掉了。用mysqli替换下

function mysql_escape_string($string){
    return mysqli_escape_string($string);
}
1年前 回复