gpt4 book ai didi

php - 将项目上传到站点后,无法解决 Fiverr 脚本中的错误成员函数 getrows()

转载 作者:行者123 更新时间:2023-11-30 00:01:56 25 4
gpt4 key购买 nike

我已经在我的服务器上上传了 Fiverr 脚本并在那里上传了数据库,安装后该网站运行良好。在我向其上传项目后,我在索引页面上不断收到此错误。

这是网址:http://jobbyu.com/

这是我收到的错误。

Warning: Division by zero in /home/xxx/public_html/index.php on line 116

Fatal error: Call to a member function getrows() on a non-object in /home/xxx/public_html/index.php on line 126

这是index.php的代码

106   if ($abc > 0)
107 {
108 if($executequery1->fields['total']<=$config[maximum_results])
109 {
110 $total = $executequery1->fields['total'];
111 }
112 else
113 {
114 $total = $config[maximum_results];
115 }
116 $toppage = ceil($total/$config['items_per_page_new']);
117 if($toppage==0)
118 {
119 $xpage=$toppage+1;
120 }
121 else
122 {
123 $xpage = $toppage;
124 }
125 $executequery2 = $conn->Execute($query2);
126 $posts = $executequery2->getrows();
127 $beginning=$pagingstart+1;
128 $ending=$pagingstart+$executequery2->recordcount();
129 $pagelinks="";
130 $k=1;
131 $theprevpage=$currentpage-1;
132 $thenextpage=$currentpage+1;

谢谢回复

最佳答案

你能检查你的配置文件吗,可能你的变量$config['items_per_page_new']是0,所以微积分将是total_pages_value除以0,这会引发错误。

PS:该网址不再有效。

关于php - 将项目上传到站点后,无法解决 Fiverr 脚本中的错误成员函数 getrows(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24950902/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com