SELECT * FROM news WHERE cid = 40 and tags like "%%" and tags like "%%" and tags like "%%" and tags like "%%" and tags like "%%" and tags like "%%" and tags like "%shiming%" and status = 0 ORDER BY id DESC
執行錯誤: 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/SpeedPHP/Core/spModel.php on line 461
456.
if('findSql'==$func_name)$conditions = $this->model_obj->_db->setlimit($conditions, $limit);
457.
}
458.
if('findSql'==$func_name){
459.
return $this->model_obj->findSql($conditions);
460.
}else{
461.
462.
return $this->model_obj->findAll($conditions, $sort, $fields, $limit);
}
463.
}
464.
}
465.
466.
/**
- /home/codes/webcode/xmgbuy.com/SpeedPHP/Core/spModel.php on line 413
408.
/**
409.
* 魔術函數,支持多重函數式使用類的方法
410.
*/
411.
public function __call($func_name, $func_args){
412.
if( ( 'findAll' == $func_name || 'findSql' == $func_name ) && 0 != $this->input_args[0]){
413.
414.
return $this->runpager($func_name, $func_args);
}elseif(method_exists($this,$func_name)){
415.
return call_user_func_array(array($this, $func_name), $func_args);
416.
}else{
417.
return call_user_func_array(array($this->model_obj, $func_name), $func_args);
418.
}
- /home/codes/webcode/xmgbuy.com/controller/cate.php on line 156
151.
$Item['classnumber'] = 30;
152.
}
153.
// 根據分類模板類型控制顯示個數 end
154.
155.
$conditions_news = "cid = ".$Item['cid'].$lable_filter." and status = 0";
156.
157.
$newsall = $newsObj->spPager($this->spArgs('page', 1),$Item['classnumber'])->findAll($conditions_news,"id DESC");
158.
$newsallnum = 0;
159.
foreach ($newsall as $key => $value) {
160.
$newsall[$newsallnum]['allstarval'] = calculationstars($value['starrating']);
161.
- /home/codes/webcode/xmgbuy.com/controller/cate.php on line 156
151.
$Item['classnumber'] = 30;
152.
}
153.
// 根據分類模板類型控制顯示個數 end
154.
155.
$conditions_news = "cid = ".$Item['cid'].$lable_filter." and status = 0";
156.
157.
$newsall = $newsObj->spPager($this->spArgs('page', 1),$Item['classnumber'])->findAll($conditions_news,"id DESC");
158.
$newsallnum = 0;
159.
foreach ($newsall as $key => $value) {
160.
$newsall[$newsallnum]['allstarval'] = calculationstars($value['starrating']);
161.
- /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();