SELECT count(*) from (select * from dy_product where tid in(26) and fenzhan not in() order by addtime desc) page_1_total_count
執行錯誤: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') order by addtime desc) page_1_total_count' at line 1
- /data/home/bxu2343090096/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/bxu2343090096/htdocs/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);
- /data/home/bxu2343090096/htdocs/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);
- /data/home/bxu2343090096/htdocs/include/cache/tpl/product_list_yongche.php on line 212
207.
<?php $vn=0;$tablev=syClass("syModel")->findSql("select tid,molds,pid,classname,gourl,litpic,title,keywords,description,orders,mrank,htmldir,htmlfile,mshow,enclassname from dy_classtype where pid='".$type[tid]."' order by orders desc,tid");foreach($tablev as $v){ $v["tid_leafid"]=$sy_class_type->leafid($v["tid"]);$v["n"]=$vn=$vn+1; $v["classname"]=stripslashes($v["classname"]);$v["description"]=stripslashes($v["description"]); $v["url"]=html_url("classtype",$v); ?>
208.
<?php
209.
$arr='3,26,27';
210.
?>
211.
<?php } ?>
212.
213.
<?php $total_count = syClass("syModel")->findSql("SELECT count(*) from (select * from dy_product where tid in($arr) and fenzhan not in($qita) order by addtime desc) page_1_total_count");$total_page = ceil( $total_count[0]["count(*)"] / 6 );$page_1_page_on=(int)$_GET["page_1_page"];if($page_1_page_on<=1){ $page_1_page_on=1;}if($page_1_page_on>$total_page){ $page_1_page_on=$total_page;}if($page_1_page_on<=1){ $page_1_limit_left=0;}else{ $page_1_limit_left=6*($page_1_page_on-1);}$page_1=pagetxt(array("total_count" => $total_count[0]["count(*)"],"total_page" => $total_page,"prev_page" => $page_1_page_on - 1,"next_page" => $page_1_page_on + 1,"last_page" => $total_page,"current_page"=> $page_1_page_on,),3,"page_1_page");$tablev=syClass("syModel")->findSql("SELECT * FROM (select * from dy_product where tid in($arr) and fenzhan not in($qita) order by addtime desc) page_1_all_sql limit ".$page_1_limit_left.",6");foreach($tablev as $v){?>
<li><a href="/index.php?c=product&id=<?php echo $v['id'] ?>"><img src="<?php echo $v['litpic'] ?>"></a><p><a href=""><?php echo $v['title'] ?></a></p></li>
214.
<?php } ?>
215.
</ul>
216.
</div>
217.
<!--jieshu-->
- /data/home/bxu2343090096/htdocs/include/Template.php on line 69
64.
if( $enable_gzip==1 ){
65.
GLOBAL $__template_compression_level;
66.
$__template_compression_level=syExt('enable_gzip_level');
67.
ob_start('template_ob_gzip');
68.
}
69.
70.
include $template_tpl;
}
71.
72.
private function template_html($content){
73.
preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
74.
foreach($i[0] as $k=>$v){
- /data/home/bxu2343090096/htdocs/include/syView.php on line 28
23.
{
24.
try {
25.
$this->addfuncs();
26.
$this->displayed = TRUE;
27.
if($GLOBALS['G_DY']['view']['debugging'] && SP_DEBUG)$this->engine->debugging = TRUE;
28.
29.
$this->engine->display($tplname);
} catch (Exception $e) {
30.
syError( $GLOBALS['G_DY']['view']['engine_name']. ' Error: '.$e->getMessage() );
31.
}
32.
}
33.
- /data/home/bxu2343090096/htdocs/include/syController.php on line 30
25.
26.
public function display($tplname, $output = TRUE)
27.
{
28.
@ob_start();
29.
if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
30.
31.
$this->v->display($tplname);
}else{
32.
extract($this->__template_vals);
33.
require($tplname);
34.
}
35.
if( TRUE != $output )return ob_get_clean();
- /data/home/bxu2343090096/htdocs/source/product.php on line 134
129.
$type_pos=$this->sy_class_type->navi($tid);
130.
foreach($type_pos as $v){
131.
$d_pos=syDB('classtype')->find(array('tid'=>$v['tid']),null,'tid,molds,htmldir,htmlfile,mrank');
132.
$this->positions.=' > <a href="'.html_url('classtype',$d_pos).'">'.$v['classname'].'</a>';
133.
}
134.
135.
$this->display('product/'.$t);
}
136.
function hits(){
137.
if($this->syArgs('id')){
138.
syDB('product')->incrField(array('id'=>$this->syArgs('id')), 'hits');
139.
$hits=syDB('product')->find(array('id'=>$this->syArgs('id')),null,'hits');
- /data/home/bxu2343090096/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/bxu2343090096/htdocs/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();