TypechoJoeTheme

Dcr163的博客

统计

PHPCMS Warning: mysqli_result::fetch_array() expects parameter 1 to be integer,

2018-08-29
/
0 评论
/
1,162 阅读
/
正在检测是否收录...
08/29
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;
}

这样即可

朗读
赞(0)
版权属于:

Dcr163的博客

本文链接:

https://www.dcr163.cn/392.html(转载时请注明本文出处及文章链接)

评论 (0)

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. https://Sites.google.com/view/vavada-online-casino
    2025-04-12
  2. https://x.com/jeetbuzzcom
    2025-04-07
  3. prozone.cc alternative
    2025-03-19
  4. urgent delivery
    2025-03-16
  5. faster indexing
    2025-03-05

标签云