SELECT * FROM zs_land WHERE id= ORDER BY id 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 id LIMIT 1' at line 1
- /alidata/www/zq/SpeedPHP/Drivers/mysqli.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysqli_query($this->conn, $sql) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />执行错误: " . mysqli_error($this->conn));
}
64.
}
65.
66.
/**
67.
* 返回影响行数
- /alidata/www/zq/SpeedPHP/Drivers/mysqli.php on line 26
21.
*
22.
* @param sql 执行的SQL语句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return array();
if( ! mysqli_num_rows($result) )return array();
28.
$rows = array();
29.
while($rows[] = mysqli_fetch_array($result, MYSQLI_ASSOC)){}
30.
mysqli_free_result($result);
31.
array_pop($rows);
- /alidata/www/zq/SpeedPHP/Core/spModel.php on line 103
98.
}else{
99.
$sort = "ORDER BY {$this->pk}";
100.
}
101.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
102.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
103.
104.
return $this->_db->getArray($sql);
}
105.
/**
106.
* 过滤转义字符
107.
*
108.
* @param value 需要进行过滤的值
- /alidata/www/zq/SpeedPHP/Core/spModel.php on line 65
60.
* @param sort 排序,等同于“ORDER BY ”
61.
* @param fields 返回的字段范围,默认为返回全部字段的值
62.
*/
63.
public function find($conditions = null, $sort = null, $fields = null)
64.
{
65.
66.
if( $record = $this->findAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
67.
}else{
68.
return FALSE;
69.
}
70.
}
- /alidata/www/zq/controller/main.php on line 430
425.
header("Vary: Accept-Encoding");
426.
$res=spClass("zs_second")->find("webname ='".trim($name)."' and type =4");
427.
$cfarr=explode(",",$res["cfurl"]);
428.
$landarr=array();
429.
foreach($cfarr as $k=>$val){
430.
431.
$lres=spClass("zs_land")->find("id=".$val);
$lres["images_all"]=explode(",",$lres["images_all"]);
432.
$lres["imgc"]=count($lres["images_all"]);
433.
array_push($landarr,$lres);
434.
}
435.
//print_r($landarr[0]);
- /alidata/www/zq/controller/main.php on line 20
15.
$this->yms=$domain[1].".".$domain[2];
16.
$this->webfact($send_name);
17.
}else{
18.
$send_name=$domain[0];
19.
$this->yms=$domain[1].".".$domain[2];
20.
21.
$this->webland($send_name);
}
22.
}
23.
}
24.
function oldindex()
25.
{
- /alidata/www/zq/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.
- /alidata/www/zq/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.
}
- /alidata/www/zq/index.php on line 70
65.
'file_root_name' => '/', // 静态文件生成的根目录名称,设置为空则是直接在入口文件的同级目录生成
66.
),
67.
);
68.
require(SP_PATH."/SpeedPHP.php");
69.
require(INC_PATH."/page.class.php"); //分页插件
70.
spRun();