UPDATE contents_description SET hits = hits + 1 WHERE id = 83 执行错误
- /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 "查询出错!{$sql}";
183.
184.
JError("{$sql} 执行错误");
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.
* 为设定的字段值减少
407.
* @param conditions 数组形式,查找条件,此参数的格式用法与getOne/getAll的查找条件参数是相同的。
- /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.
// 执行用户代码
31.
32.
$__handle_controller->$__actionFunc();
33.
//显示前执行自定义代码
34.
JInject("before_display");
35.
36.
// 控制器程序运行完毕,进行模板的自动输出
- /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();
?>