SELECT COUNT(id) AS SP_COUNTER FROM replyinfo WHERE status = 0 AND types = 'appdata' AND typelinkid = '6075'
执行错误: Query execution was interrupted
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Drivers/mysql.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysql_query($sql, $this->conn) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />执行错误: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影响行数
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Drivers/mysql.php on line 26
21.
*
22.
* @param sql 执行的SQL语句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return array();
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);
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Core/spModel.php on line 257
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.
258.
$result = $this->_db->getArray($sql);
return $result[0]['SP_COUNTER'];
259.
}
260.
261.
/**
262.
* 魔术函数,执行模型扩展类的自动加载及使用
- /home/codes/webcode/xmgbuy.com/include/replay_data.php on line 6
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.
7.
$reply_list_num = $lib_replyinfo->findCount($conditions,"id desc");
$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) {
- /home/codes/webcode/xmgbuy.com/controller/albums.php on line 123
118.
119.
// 回复组件 start
120.
$this->replay_cid = $id;
121.
$this->replaytypes = "appdata";
122.
$this->replaytitle = $_SESSION['userinfo']['uname']."对:".$this->title."的回复";
123.
124.
require("include/replay_data.php");
// 回复组件 end
125.
126.
$this->display('template/'.$this->template_name.'/albums/article.html'); // 显示模板
127.
}
128.
// 跳转回首页
- /home/codes/webcode/xmgbuy.com/SpeedPHP/spFunctions.php on line 21
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
20.
// 路由并执行用户代码
21.
22.
$handle_controller->$__action();
// 控制器程序运行完毕,进行模板的自动输出
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);
- /home/codes/webcode/xmgbuy.com/index.php on line 58
53.
),
54.
)
55.
);
56.
require(SP_PATH."/SpeedPHP.php");
57.
import(APP_PATH.'/controller/tplbasis.php'); // 需要先载入top控制器父类
58.
spRun();