SELECT * FROM news WHERE time >= '1732282804' and time <= '1732290004' ORDER BY id desc
执行错误: Sort aborted: 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 103
98.
}else{
99.
$sort = "ORDER BY {$this->pk}";
100.
}
101.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
102.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
103.
104.
return $this->_db->getArray($sql);
}
105.
/**
106.
* 过滤转义字符
107.
*
108.
* @param value 需要进行过滤的值
- /home/codes/webcode/xmgbuy.com/controller/tplbasis.php on line 474
469.
// 定时发布 start
470.
$newsObj = spClass("lib_news"); // 分类
471.
$strat_time_ds = strtotime(date('Y-m-d H:i:s',strtotime('-1 hours')));
472.
$end_time_ds = strtotime(date('Y-m-d H:i:s',strtotime('+1 hours')));
473.
$conditions_ds = "time >= '".$strat_time_ds."' and time <= '".$end_time_ds."' ";
474.
475.
$Obj_timing = $newsObj->findAll($conditions_ds,"id desc");
$newsObj->update($conditions_ds,array('status'=>0));
476.
// 定时发布 end
477.
478.
// 后台菜单设置 start
479.
$adminmenu = $arrayName['menuadmin']['event']; // 1-管理菜单,0-关闭
- /home/codes/webcode/xmgbuy.com/SpeedPHP/spFunctions.php on line 149
144.
}
145.
}
146.
if(FALSE != $has_define){
147.
$argString = '';$comma = '';
148.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
149.
150.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
151.
}
152.
spError($class_name."类定义不存在,请检查。");
153.
}
154.
- /home/codes/webcode/xmgbuy.com/SpeedPHP/spFunctions.php on line 14
9.
function spRun(){
10.
GLOBAL $__controller, $__action;
11.
// 对路由进行自动执行相关操作
12.
spLaunch("router_prefilter");
13.
// 对将要访问的控制器类进行实例化
14.
15.
$handle_controller = spClass($__controller, null, $GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
// 调用控制器出错将调用路由错误处理函数
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
- /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();