UPDATE dy_article SET hits = hits + 1 WHERE id = '4921'
执行错误: File './www_hppx_net/dy_article.MYD' not found (Errcode: 13 - Permission denied)
- /www/wwwroot/www.hppx.net/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.
}
- /www/wwwroot/www.hppx.net/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);
- /www/wwwroot/www.hppx.net/source/article.php on line 135
130.
}
131.
132.
}
133.
function hits(){
134.
if($this->syArgs('id')){
135.
136.
syDB('article')->incrField(array('id'=>$this->syArgs('id')), 'hits');
$hits=syDB('article')->find(array('id'=>$this->syArgs('id')),null,'hits');
137.
echo 'document.write("'.$hits['hits'].'");';
138.
}
139.
}
140.
function search(){
- /www/wwwroot/www.hppx.net/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.
}
- /www/wwwroot/www.hppx.net/index.php on line 5
1.
<?php
2.
require("config.php");
3.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4.
require(DOYO_PATH."/sys.php");
5.
spRun();