SELECT * FROM dg_special WHERE sid= ORDER BY sid 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 'ORDER BY sid LIMIT 1' at line 1
- /www/wwwroot/modernamc.com/public/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/modernamc.com/public/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/modernamc.com/public/include/syModel.php on line 58
53.
}else{
54.
$sort = "ORDER BY {$this->pk}";
55.
}
56.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
57.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
58.
59.
return $this->_db->getArray($sql);
}
60.
61.
public function escape($value)
62.
{
63.
return $this->_db->__val_escape($value);
- /www/wwwroot/modernamc.com/public/include/syModel.php on line 30
25.
if ($this->_db->showtables($value)==0){return TRUE;}else{return FALSE;}
26.
}
27.
28.
public function find($conditions = null, $sort = null, $fields = null)
29.
{
30.
31.
if( $record = $this->findAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
32.
}else{
33.
return FALSE;
34.
}
35.
}
- /www/wwwroot/modernamc.com/public/dgsadm/special.php on line 16
11.
if($this->syArgs('file',1)!=''){
12.
$this->special=syDB('special')->find(' htmlfile="'.$this->syArgs('file',1).'" or sid='.$this->syArgs('file').' ');
13.
$tid = $this->special['sid'];
14.
}else{
15.
$sid = $this->syArgs('sid');
16.
17.
$this->special=syDB('special')->find(" sid=".$sid." ");
}
18.
if(!$this->special){message("指定专题不存在");}
19.
20.
$this->db=$GLOBALS['G_DY']['db']['prefix'].$this->special['molds'];
21.
- /www/wwwroot/modernamc.com/public/include/Functions.php on line 19
14.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
15.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
16.
syError('route Error');
17.
exit;
18.
}
19.
20.
$handle_controller->$__action();
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
21.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
22.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
23.
$handle_controller->auto_display($__tplname);
24.
}
- /www/wwwroot/modernamc.com/public/index.php on line 5
1.
<?php
2.
require("config.php");
3.
$dgsConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$dgsConfig['ext']['view_themes'];
4.
require(DGSCMS_PATH."/sys.php");
5.
spRun();