PHPCMS Warning: mysqli_result::fetch_array() expects parameter 1 to be integer,
Warning: mysqli_result::fetch_array() expects parameter 1 to be integer, string given in phpsso_server\phpcms\libs\classes\db_mysqli.class.php on line 156
PHPCMS 使用mysqli连接报错修复,
修改文件:/phpcms/libs/classes/db_mysqli.class.php
修改文件:/phpsso_server/phpcms/libs/classes/db_mysqli.class.php
这两个文件把
public function fetch_next($type=MYSQL_ASSOC) { $res = $this->lastqueryid->fetch_array($type); if(!$res) { $this->free_result(); } return $res; }
替换成
public function fetch_next($type=1) { //修改为 数字MYSQL_ASSOC=>1 $res = $this->lastqueryid->fetch_array($type); if(!$res) { $this->free_result(); } return $res; }
这样即可
Dcr163的博客
https://www.dcr163.cn/392.html(转载时请注明本文出处及文章链接)