select * from yt_article a left join yt_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/hljschlyjwh7ljj8sic6hbllytj/wwwroot/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/hljschlyjwh7ljj8sic6hbllytj/wwwroot/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/hljschlyjwh7ljj8sic6hbllytj/wwwroot/include/syModel.php on line 125
120.
return $this->update($conditions, array($field=>$value));
121.
}
122.
123.
public function findSql($sql)
124.
{
125.
return $this->_db->getArray($sql);
126.
}
127.
128.
public function runSql($sql)
129.
{
130.
return $this->_db->exec($sql);
- /home/hljschlyjwh7ljj8sic6hbllytj/wwwroot/ytmanage/article.php on line 74
69.
if($this->syArgs('file',1)!=''){
70.
$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');
71.
$id = $this->article['id'];
72.
}else{
73.
$id = $this->syArgs('id');
74.
$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');
75.
}
76.
77.
if(!$this->article){message("指定内容不保存或未审核");}
78.
79.
- /home/hljschlyjwh7ljj8sic6hbllytj/wwwroot/include/Functions.php on line 25
20.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
21.
syError('route Error');
22.
exit;
23.
24.
}
25.
$handle_controller->$__action();
26.
27.
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
28.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
29.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
30.
$handle_controller->auto_display($__tplname);
- /home/hljschlyjwh7ljj8sic6hbllytj/wwwroot/index.php on line 21
16.
17.
$yitongConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$yitongConfig['ext']['view_themes'];
18.
19.
require(YITONG_PATH."/sys.php");
20.
21.
spRun();
22.