UPDATE actives SET hits = 2056 WHERE id = '1886'
执行错误: MySQL server has gone away
- /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/Core/spModel.php on line 301
296.
$value = $this->escape($value);
297.
$vals[] = "{$key} = {$value}";
298.
}
299.
$values = join(", ",$vals);
300.
$sql = "UPDATE {$this->tbl_name} SET {$values} {$where}";
301.
302.
return $this->_db->exec($sql);
}
303.
304.
/**
305.
* 替换数据,根据条件替换存在的记录,如记录不存在,则将条件与替换数据相加并新增一条记录。
306.
*
- /home/codes/webcode/xmgbuy.com/controller/actives.php on line 293
288.
$newsObj->update($conditions_gatheringtime,array('gatheringmarker'=>$return_jg,'gatheringtime'=>time()));
289.
}
290.
// 计算相差天数 end
291.
292.
$conditions_news = array('id' =>$Item_news['id']);
293.
294.
$newsObj->update($conditions_news,array('hits'=>$Item_news['hits']+1));
295.
$conditions_lib = array( 'ishide' => 1 );
296.
$this->Itemall = $libObj->findAll($conditions_lib);
297.
$conditions_links = array( 'cid' => $Item_news['cid']['cid']);
298.
$newslinks = $newsObj->findAll($conditions_links,'id desc',null,12);
- /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();