select count(*) as doyo_total_page from dy_article where isshow=1 and tid in(53)
执行错误: 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/mysql.php on line 8
3.
class db_mysql {
4.
public $conn;
5.
public $arrSql;
6.
public function getArray($sql)
7.
{
8.
9.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
10.
$rows = array();
11.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
12.
mysql_free_result($result);
13.
array_pop($rows);
- /www/wwwroot/www.hppx.net/include/syModel.php on line 124
119.
return $this->update($conditions, array($field=>$value));
120.
}
121.
122.
public function findSql($sql)
123.
{
124.
125.
return $this->_db->getArray($sql);
}
126.
127.
public function runSql($sql)
128.
{
129.
return $this->_db->exec($sql);
- /www/wwwroot/www.hppx.net/include/Functions.php on line 653
648.
}
649.
return $allfields;
650.
}
651.
//统计
652.
function total_page($sql,$v='doyo_total_page'){
653.
654.
$a=syDB('molds')->findSql('select count(*) as '.$v.' from '.$sql);
return $a[0][$v];
655.
}
656.
//支付平台
657.
function payment($pay){
658.
$payment=syDB('payment')->find(array('pay' => $pay),null,'name');
- /www/wwwroot/www.hppx.net/source/article.php on line 107
102.
foreach($f as $v){$fields.=','.$v['fields'];}
103.
$sql='select id,tid,title,style,trait,gourl,addtime,hits,litpic,orders,mrank,mgold,isshow,description,htmlurl,htmlfile,user'.$fields.' from '.$this->db.' a left join '.$this->db.'_field b on (a.id=b.aid)'.$w.$order;
104.
}else{
105.
$sql='select id,tid,title,style,trait,gourl,addtime,hits,litpic,orders,mrank,mgold,isshow,description,htmlurl,htmlfile,user from '.$this->db.$w.$order;
106.
}
107.
108.
$total_page=total_page($this->db.$w);
$this->lists = $this->Class->syPager($this->syArgs('page',0,1),$this->type['listnum'],$total_page)->findSql($sql);
109.
$pages=$this->Class->syPager()->getPager();
110.
$this->pages=html_url('classtype',$this->type,$pages,$this->syArgs('page',0,1));
111.
$list_c=$this->lists;
112.
foreach($list_c as $k=>$v){
- /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();