免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2428 | 回复: 5

更換LINUX服務器後,在184行與185行出現錯誤,煩請高手解決! [复制链接]

论坛徽章:
0
发表于 2013-02-25 21:25 |显示全部楼层
出錯提示:
Strict Standards: Resource ID#15 used as offset, casting to integer (15) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#15 used as offset, casting to integer (15) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

出錯代碼:
        function sql_fetchrow($query_id = 0)
        {
                if(!$query_id)
                {
                        $query_id = $this->query_result;
                }
                if($query_id)
                {
184                        $this->row[$query_id] = @mysql_fetch_array($query_id);
185                        return $this->row[$query_id];
                }
                else
                {
                        return false;
                }



舊服務器都是好的,更換服務器後,就在184行與185行出現錯誤,煩請高手解決!

论坛徽章:
13
双鱼座
日期:2013-10-23 09:30:05数据库技术版块每日发帖之星
日期:2016-04-20 06:20:00程序设计版块每日发帖之星
日期:2016-03-09 06:20:002015亚冠之塔什干火车头
日期:2015-11-02 10:07:452015亚冠之德黑兰石油
日期:2015-08-30 10:07:07数据库技术版块每日发帖之星
日期:2015-08-28 06:20:00数据库技术版块每日发帖之星
日期:2015-08-05 06:20:002015年迎新春徽章
日期:2015-03-04 09:57:09辰龙
日期:2014-12-03 14:45:52酉鸡
日期:2014-07-23 09:46:23亥猪
日期:2014-03-13 08:46:22金牛座
日期:2014-02-11 09:36:21
发表于 2013-02-26 08:46 |显示全部楼层
$query_id 是15吧,超出array的边界了

论坛徽章:
0
发表于 2013-02-26 09:26 |显示全部楼层
那為什麼之前的服務器,這段代碼沒有問題 。

论坛徽章:
0
发表于 2013-02-26 10:03 |显示全部楼层
現在整個網站都是這個錯誤:
Strict Standards: Resource ID#16 used as offset, casting to integer (16) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#16 used as offset, casting to integer (16) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#18 used as offset, casting to integer (1 in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#18 used as offset, casting to integer (1 in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#19 used as offset, casting to integer (19) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#19 used as offset, casting to integer (19) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#20 used as offset, casting to integer (20) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#20 used as offset, casting to integer (20) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#17 used as offset, casting to integer (17) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#16 used as offset, casting to integer (16) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#16 used as offset, casting to integer (16) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#21 used as offset, casting to integer (21) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#21 used as offset, casting to integer (21) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#22 used as offset, casting to integer (22) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

Strict Standards: Resource ID#22 used as offset, casting to integer (22) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 185

Strict Standards: Resource ID#21 used as offset, casting to integer (21) in /opt/lampp/htdocs/plms2new/libraries/class.db.php on line 184

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
发表于 2013-02-27 15:33 |显示全部楼层
是mysql问题吧?检查一下数据库配置文件。

论坛徽章:
0
发表于 2013-03-04 07:52 |显示全部楼层
我現在把PHP.INI文件內的error_report,這項設置注釋掉,現在沒有錯誤出現,暫時能用,先謝謝了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP