select * from dy_article a left join dy_article_field b on (a.id=b.aid) where id= and isshow=1 limit 1
执行错误: 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 'and isshow=1 limit 1' at line 1
- /home/wwwroot/yxrdyf_com/public_html/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.
syError("{$sql}<br />执行错误: " . mysql_error());
40.
}else{
41.
return TRUE;
42.
}
43.
}
44.
}
- /home/wwwroot/yxrdyf_com/public_html/include/mysql.php on line 8
3.
class db_mysql {
4.
public $conn;
5.
public $arrSql;
6.
public function getArray($sql)
7.
{
8.
if( ! $result = $this->exec($sql) )return array();
9.
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);
- /home/wwwroot/yxrdyf_com/public_html/include/syModel.php on line 123
118.
return $this->update($conditions, array($field=>$value));
119.
}
120.
121.
public function findSql($sql)
122.
{
123.
return $this->_db->getArray($sql);
124.
}
125.
126.
public function runSql($sql)
127.
{
128.
return $this->_db->exec($sql);
- /home/wwwroot/yxrdyf_com/public_html/doyo/article.php on line 22
17.
if($this->syArgs('file',1)!=''){
18.
$this->article=syDB('article')->findSql('select * from '.$this->db.' a left join '.$this->db.'_field b on (a.id=b.aid) where (htmlfile="'.$this->syArgs('file',1).'" or id='.$this->syArgs('file').') and isshow=1 limit 1');
19.
$id = $this->article['id'];
20.
}else{
21.
$id = $this->syArgs('id');
22.
$this->article=syDB('article')->findSql('select * from '.$this->db.' a left join '.$this->db.'_field b on (a.id=b.aid) where id='.$id.' and isshow=1 limit 1');
23.
}
24.
if(!$this->article){message("指定内容不存在或未审核");}
25.
$this->article=$this->article[0];
26.
$this->article=array_merge($this->article,array('tid_leafid'=>$this->sy_class_type->leafid($this->article['tid'])));
27.
if($this->article['mrank']>0){
- /home/wwwroot/yxrdyf_com/public_html/include/Functions.php on line 12
7.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
8.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
9.
syError('route Error');
10.
exit;
11.
}
12.
$handle_controller->$__action();
13.
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
14.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
15.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
16.
$handle_controller->auto_display($__tplname);
17.
}
- /home/wwwroot/yxrdyf_com/public_html/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();