SELECT COUNT(id) AS SP_COUNTER FROM replyinfo WHERE status = 0 AND types = 'appdata' AND typelinkid = '6075'
执行错误: Query execution was interrupted

57.      {
58.          $this->arrSql[] = $sql;
59.          if( $result mysql_query($sql$this->conn) ){
60.              return $result;
61.          }else{
62.              spError("{$sql}<br />执行错误: " mysql_error());
63.          }
64.      }
65.      
66.      /**
67.       返回影响行数
21.       
22.       * @param sql  执行的SQL语句
23.       */
24.      public function getArray($sql)
25.      {
26.          if( ! $result $this->exec($sql) )return array();
27.          if( ! mysql_num_rows($result) )return array();
28.          $rows = array();
29.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.          mysql_free_result($result);
31.          array_pop($rows);
252.              $where "WHERE ".join(" AND ",$join);
253.          }else{
254.              if(null != $conditions)$where "WHERE ".$conditions;
255.          }
256.          $sql "SELECT COUNT({$this->pk}) AS SP_COUNTER FROM {$this->tbl_name} {$where}";
257.          $result $this->_db->getArray($sql);
258.          return $result[0]['SP_COUNTER'];
259.      }
260. 
261.      /**
262.       魔术函数,执行模型扩展类的自动加载及使用
1.  <?php
2.        $lib_replyinfo spClass("lib_replyinfo");    // 分类
3.        $userObj spClass("lib_user");    // 用户
4.        $conditions = array( 'status' => 0,'types' => $this->replaytypes,'typelinkid' => $this->replay_cid );
5. 
6.        $reply_list_num =  $lib_replyinfo->findCount($conditions,"id desc");
7.        $this->replaynum $reply_list_num;
8. 
9.        $reply_list =  $lib_replyinfo->spPager($this->spArgs('page'1), 10)->findAll($conditions,"id desc");
10.        $n=0;
11.        foreach ($reply_list as $value) {
118.            
119.            // 回复组件 start
120.            $this->replay_cid $id;
121.            $this->replaytypes "appdata";
122.            $this->replaytitle $_SESSION['userinfo']['uname']."对:".$this->title."的回复";
123.            require("include/replay_data.php");
124.            // 回复组件 end
125.            
126.            $this->display('template/'.$this->template_name.'/albums/article.html'); // 显示模板
127.         }
128.      // 跳转回首页
16.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
17.          eval($GLOBALS['G_SP']["dispatcher_error"]);
18.          exit;
19.      }
20.      // 路由并执行用户代码
21.      $handle_controller->$__action();
22.      // 控制器程序运行完毕,进行模板的自动输出
23.      if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
24.          $__tplname $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
25.                  $__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
26.          $handle_controller->auto_display($__tplname);
53.          ),
54.       )
55.  );
56.  require(SP_PATH."/SpeedPHP.php");
57.  import(APP_PATH.'/controller/tplbasis.php'); // 需要先载入top控制器父类
58.  spRun();