SELECT * FROM dy_classtype WHERE molds='article' and 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
- /alidata/www/www.vigour.net.cn/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.
}
- /alidata/www/www.vigour.net.cn/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);
- /alidata/www/www.vigour.net.cn/include/syModel.php on line 55
50.
}else{
51.
$sort = "ORDER BY {$this->pk}";
52.
}
53.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
54.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
55.
56.
return $this->_db->getArray($sql);
}
57.
58.
public function escape($value)
59.
{
60.
return $this->_db->__val_escape($value);
- /alidata/www/www.vigour.net.cn/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.
}
- /alidata/www/www.vigour.net.cn/source/article.php on line 27
22.
$article = syDB('article')->find('id=' . $this->syArgs('id') . ' and isshow=1');
23.
$tid = $article['tid'];
24.
}elseif($this->syArgs('tid')){
25.
$tid = $this->syArgs('tid');
26.
}
27.
28.
$this->type = syDB('classtype')->find(" molds='article' and tid=" . $tid . " ");
if($this->type['pid']==0){
29.
$ptype = $this->type;
30.
$banner = $this->type['banner'];
31.
$this->curtype = syDB('classtype')->find(" molds='article' and pid=" . $tid . "");
32.
}else{
- /alidata/www/www.vigour.net.cn/include/Functions.php on line 129
124.
125.
)for ($i = 0; $i < count($args); $i++) {
126.
$argString .= $comma . "\$args[$i]";
127.
$comma = ', ';
128.
}
129.
130.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
131.
}
132.
syError($class_name . "类定义不存在,请检查。");
133.
}
134.
- /alidata/www/www.vigour.net.cn/include/Functions.php on line 15
10.
syError('route Error');
11.
exit;
12.
}
13.
syClass('sysession');
14.
spLaunch("router_prefilter");
15.
16.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"] . '/' . $__controller . ".php");
if (!is_object($handle_controller) || !method_exists($handle_controller, $__action)) {
17.
syError('route Error');
18.
exit;
19.
}
20.
$handle_controller->$__action();
- /alidata/www/www.vigour.net.cn/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();