DESCRIBE actives
執行錯誤: Query execution was interrupted
- /home/codes/webcode/www.amigosnobles.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/www.amigosnobles.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/www.amigosnobles.com/SpeedPHP/Drivers/mysql.php on line 81
76.
*
77.
* @param tbl_name 表名稱
78.
*/
79.
public function getTable($tbl_name)
80.
{
81.
82.
return $this->getArray("DESCRIBE {$tbl_name}");
}
83.
84.
/**
85.
* 構造函數
86.
*
- /home/codes/webcode/www.amigosnobles.com/SpeedPHP/Core/spModel.php on line 372
367.
* 按表字段調整適合的字段
368.
* @param rows 輸入的表字段
369.
*/
370.
private function __prepera_format($rows)
371.
{
372.
373.
$columns = $this->_db->getTable($this->tbl_name);
$newcol = array();
374.
foreach( $columns as $col ){
375.
$newcol[$col['Field']] = $col['Field'];
376.
}
377.
return array_intersect_key($rows,$newcol);
- /home/codes/webcode/www.amigosnobles.com/SpeedPHP/Core/spModel.php on line 283
278.
* 此參數的格式用法與create的$row是相同的。在符合條件的記錄中,將對$row設置的字段的數據進行修改。
279.
*/
280.
public function update($conditions, $row)
281.
{
282.
$where = "";
283.
284.
$row = $this->__prepera_format($row);
if(empty($row))return FALSE;
285.
if(is_array($conditions)){
286.
$join = array();
287.
foreach( $conditions as $key => $condition ){
288.
$condition = $this->escape($condition);
- /home/codes/webcode/www.amigosnobles.com/controller/actives.php on line 288
283.
{
284.
//$return_jg = checkBaiduInclude("http://www.www.amigosnobles.com/activeinfo/".$Item_news['id'].".html");
285.
//dump($return_jg);
286.
//exit;
287.
$conditions_gatheringtime = array('id' =>$Item_news['id']);
288.
289.
$newsObj->update($conditions_gatheringtime,array('gatheringmarker'=>$return_jg,'gatheringtime'=>time()));
}
290.
// 計算相差天數 end
291.
292.
$conditions_news = array('id' =>$Item_news['id']);
293.
$newsObj->update($conditions_news,array('hits'=>$Item_news['hits']+1));
- /home/codes/webcode/www.amigosnobles.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/www.amigosnobles.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();