UPDATE cem_article SET hits = hits + 1 WHERE id = '17'
执行错误: UPDATE command denied to user 'bdm25313798'@'123.56.138.53' for table 'cem_article'
- /data/home/bxu2342100006/htdocs/include/mysql.php on line 39
34.
$this->arrSql[] = $sql;
35.
if( $result = mysql_query($sql, $this->conn) ){
36.
return $result;
37.
}else{
38.
if(mysql_error()!=''){
39.
40.
syError("{$sql}<br />执行错误: " . mysql_error());
}else{
41.
return TRUE;
42.
}
43.
}
44.
}
- /data/home/bxu2342100006/htdocs/include/syModel.php on line 220
215.
}else{
216.
if(null != $conditions)$where = "WHERE ".$conditions;
217.
}
218.
$values = "{$field} = {$field} + {$optval}";
219.
$sql = "UPDATE {$this->tbl_name} SET {$values} {$where}";
220.
221.
return $this->_db->exec($sql);
}
222.
223.
public function decrField($conditions, $field, $optval = 1)
224.
{
225.
return $this->incrField($conditions, $field, - $optval);
- /data/home/bxu2342100006/htdocs/source/article.php on line 117
112.
}
113.
$this->display('article/'.$t);
114.
}
115.
function hits(){
116.
if($this->syArgs('id')){
117.
118.
syDB('article')->incrField(array('id'=>$this->syArgs('id')), 'hits');
$hits=syDB('article')->find(array('id'=>$this->syArgs('id')),null,'hits');
119.
echo 'document.write("'.$hits['hits'].'");';
120.
}
121.
}
122.
function search(){
- /data/home/bxu2342100006/htdocs/include/Functions.php on line 16
11.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
12.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
13.
syError('route Error');
14.
exit;
15.
}
16.
17.
$handle_controller->$__action();
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
18.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
19.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
20.
$handle_controller->auto_display($__tplname);
21.
}
- /data/home/bxu2342100006/htdocs/index.php on line 5
1.
<?php
2.
require("config.php");
3.
$GzCConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$GzCConfig['ext']['view_themes'];
4.
require(GzC_PATH."/sys.php");
5.
spRun();