SELECT * FROM dy_classtype WHERE tid= ORDER BY tid 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 tid LIMIT 1' at line 1
- /www/wwwroot/cxkj/include/mysql.php on line 46
41.
$this->arrSql[] = $sql;
42.
if ($result = mysql_query($sql, $this->conn)) {
43.
return $result;
44.
} else {
45.
if (mysql_error() != '') {
46.
47.
syError("{$sql}<br />执行错误: " . mysql_error());
} else {
48.
return true;
49.
}
50.
}
51.
}
- /www/wwwroot/cxkj/include/mysql.php on line 9
4.
{
5.
public $conn;
6.
public $arrSql;
7.
public function getArray($sql)
8.
{
9.
10.
if (!$result = $this->exec($sql)) {
return array();
11.
}
12.
13.
if (!mysql_num_rows($result)) {
14.
return array();
- /www/wwwroot/cxkj/include/syModel.php on line 68
63.
}else{
64.
$sort = "ORDER BY {$this->pk}";
65.
}
66.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
67.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
68.
69.
return $this->_db->getArray($sql);
}
70.
71.
public function escape($value)
72.
{
73.
return $this->_db->__val_escape($value);
- /www/wwwroot/cxkj/include/syModel.php on line 27
22.
if ($this->_db->showtables($value)==0){return TRUE;}else{return FALSE;}
23.
}
24.
25.
public function find($conditions = null, $sort = null, $fields = null)
26.
{
27.
28.
if( $record = $this->findAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
29.
}else{
30.
return FALSE;
31.
}
32.
}
- /www/wwwroot/cxkj/source/product.php on line 246
241.
if($this->syArgs('file',1)!=''){
242.
$this->type=syDB('classtype')->find(' htmlfile="'.$this->syArgs('file',1).'" or tid='.$this->syArgs('file').' ');
243.
$tid = $this->type['tid'];
244.
}else{
245.
$tid = $this->syArgs('sid');
246.
247.
$this->type=syDB('classtype')->find("tid=".$tid." ");
}
248.
if(!$this->type){message("指定栏目不存在");}
249.
if($this->type['mrank']>0){
250.
syClass('symember')->p_v($this->type['mrank']);
251.
}
- /www/wwwroot/cxkj/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/cxkj/index.php on line 96
91.
// $doyoConfig['ext']['view_themes'] = $_GET['theme'];
92.
// setcookie('theme', $doyoConfig['ext']['view_themes']);
93.
// }
94.
$doyoConfig['view']['config']['template_dir'] = APP_PATH . '/template/' . $doyoConfig['ext']['view_themes'];
95.
require DOYO_PATH . "/sys.php";
96.
spRun();