SELECT * FROM zc_category WHERE catid in () ORDER BY catid
执行错误: 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 catid' at line 1
- /data0/wwwroot/9lmc.com/SpeedPHP/Drivers/mysql.php on line 70
65.
{
66.
$this->arrSql[] = $sql;
67.
if( $result = mysql_query($sql, $this->conn) ){
68.
return $result;
69.
}else{
70.
71.
spError("{$sql}<br />执行错误: " . mysql_error());
}
72.
}
73.
74.
/**
75.
* 返回影响行数
- /data0/wwwroot/9lmc.com/SpeedPHP/Drivers/mysql.php on line 27
22.
* @param sql 执行的SQL语句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
28.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
29.
30.
$rows = array();
31.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
32.
- /data0/wwwroot/9lmc.com/SpeedPHP/Core/spModel.php on line 105
100.
$sort = "ORDER BY {$this->pk}";
101.
}
102.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
103.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
104.
105.
106.
return $this->_db->getArray($sql);
}
107.
/**
108.
* 过滤转义字符
109.
*
110.
* @param value 需要进行过滤的值
- /data0/wwwroot/9lmc.com/modules/index/spage.php on line 46
41.
$pid = explode(",",$resulta["arrparentid"]);
42.
$this->sidenid = $sidenid = (0 == $resulta["parentid"])?$a:$pid["2"];
43.
44.
$this->resultSide = spClass("catalog")->getCatalogList($sidenid);//侧栏二级栏目数组
45.
46.
47.
$this->path = $this->DB_CATE->findAll("catid in (".$resulta["arrparentid"].")");//目录路径
48.
$this->pagekey = (0 < $pid["3"])?$pid["3"]:$pid["2"];
49.
50.
$this->pageColor = "menu_h";
51.
}
- /data0/wwwroot/9lmc.com/SpeedPHP/spFunctions.php on line 149
144.
}
145.
}
146.
if(FALSE != $has_define){
147.
$argString = '';$comma = '';
148.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
149.
150.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
151.
}
152.
spError($class_name."类定义不存在,请检查。");
153.
}
154.
- /data0/wwwroot/9lmc.com/SpeedPHP/spFunctions.php on line 14
9.
function spRun(){
10.
GLOBAL $__controller, $__action;
11.
// 对路由进行自动执行相关操作
12.
spLaunch("router_prefilter");
13.
// 对将要访问的控制器类进行实例化
14.
15.
$handle_controller = spClass($__controller, null, $GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
// 调用控制器出错将调用路由错误处理函数
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
- /data0/wwwroot/9lmc.com/index.php on line 69
64.
65.
// 载入用户自定义的函数文件
66.
require(SP_PATH."/SpeedPHP.php");
67.
require(APP_PATH.'/lib/functions.php');
68.
import('md5password.php');
69.
spRun();