UPDATE contents_description SET hits = hits + 1 WHERE id = 72 執(zhí)行錯(cuò)誤
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/sqlite.php on line 183
178.
179.
$result = $this->db->query($sql);
180.
181.
if($result===false)
182.
//echo "查詢出錯(cuò)!{$sql}";
183.
184.
JError("{$sql} 執(zhí)行錯(cuò)誤");
185.
$this->lastResult = $result;
186.
return $result;
187.
}
188.
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/MVC/JModel.php on line 402
397.
public function incrField($conditions, $field, $optval = 1)
398.
{
399.
$where = $this->_db->getWhere($conditions);
400.
$values = "{$field} = {$field} + {$optval}";
401.
$sql = "UPDATE {$this->tbl_name} SET {$values} {$where}";
402.
403.
return $this->_db->exec($sql);
}
404.
405.
/**
406.
* 為設(shè)定的字段值減少
407.
* @param conditions 數(shù)組形式,查找條件,此參數(shù)的格式用法與getOne/getAll的查找條件參數(shù)是相同的。
- /www/wwwroot/www.ccpv.net.nc/modules/contents/contents.php on line 29
24.
$language= $this->getLang();
25.
26.
$contents_description = JLoadClass('contents_description');
27.
if($content_description = $contents_description->getOne(array('content_id' => $content_id, 'language' => $language))) {
28.
$cdid = intval($content_description['id']);
29.
30.
$contents_description->incrField(array('id'=>$cdid), 'hits');
31.
$model = $content_description['model'];
32.
$model_obj = JLoadClass($model);
33.
$cond = array(
34.
$model_obj->cpk => $content_id,
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/JFunctions.php on line 31
26.
eval($GLOBALS['G_JCONFIG']["dispatcher_error"]);
27.
exit;
28.
}
29.
30.
// 執(zhí)行用戶代碼
31.
32.
$__handle_controller->$__actionFunc();
33.
//顯示前執(zhí)行自定義代碼
34.
JInject("before_display");
35.
36.
// 控制器程序運(yùn)行完畢,進(jìn)行模板的自動(dòng)輸出
- /www/wwwroot/www.ccpv.net.nc/index.php on line 68
63.
if(count($server_info) > 1) {
64.
$server_domain = $server_info[count($server_info)-2];
65.
define('DOMAIN', $server_domain);
66.
}
67.
68.
69.
JStart();
?>