Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将项目上载到站点后,无法解决fiverr脚本中的错误成员函数getrows()_Php_Mysql_Mysqli - Fatal编程技术网

Php 将项目上载到站点后,无法解决fiverr脚本中的错误成员函数getrows()

Php 将项目上载到站点后,无法解决fiverr脚本中的错误成员函数getrows(),php,mysql,mysqli,Php,Mysql,Mysqli,我已经在我的服务器上上传了fiverr脚本,并在那里上传了数据库,安装后网站运行良好。 在我上传了一个项目之后,我在索引页面上不断地出现这个错误 以下是网址: 这就是我得到的错误 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_h

我已经在我的服务器上上传了fiverr脚本,并在那里上传了数据库,安装后网站运行良好。 在我上传了一个项目之后,我在索引页面上不断地出现这个错误

以下是网址:

这就是我得到的错误

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\u per\u page\u new']它是0,所以演算将是总的\u page\u值除以0,这将抛出一个错误

附:这个网址已经不起作用了