SELECT * FROM sst_category WHERE parent_id= and is_show=1 ORDER BY sort_order asc
执行错误: 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 'and is_show=1 ORDER BY sort_order asc' at line 1
- /www/website/shop_sstdyf/SpeedPHP/Drivers/mysql.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysql_query($sql, $this->conn) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />执行错误: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影响行数
- /www/website/shop_sstdyf/SpeedPHP/Drivers/mysql.php on line 26
21.
*
22.
* @param sql 执行的SQL语句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return FALSE;
if( ! mysql_num_rows($result) )return FALSE;
28.
$rows = array();
29.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.
mysql_free_result($result);
31.
array_pop($rows);
- /www/website/shop_sstdyf/SpeedPHP/Core/spModel.php on line 105
100.
}
101.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
102.
103.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
104.
//echo $sql ."<br>";
105.
106.
return $this->_db->getArray($sql);
}
107.
/**
108.
* 过滤转义字符
109.
*
110.
* @param value 需要进行过滤的值
- /www/website/shop_sstdyf/controller/good_category.php on line 155
150.
{
151.
$par_msg = $this->parent_msg($parid,$cat_id); //获取ID的顶级ID
152.
}
153.
$this->par_msg = $par_msg;
154.
//获取接收ID所在的所有分类
155.
156.
$bigcategory = $category->findAll(' parent_id=' . $par_msg['cat_id'] . $where,'sort_order asc');
foreach ( $bigcategory as &$value )
157.
{
158.
$value['child'] = $category->findAll(' parent_id=' . $value['cat_id'] . $where,'sort_order asc');
159.
}
160.
$this->bcat = $bigcategory;
- /www/website/shop_sstdyf/SpeedPHP/spFunctions.php on line 24
19.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
20.
eval($GLOBALS['G_SP']["dispatcher_error"]);
21.
exit;
22.
}
23.
// 路由并执行用户代码
24.
25.
$handle_controller->$__action();
// 控制器程序运行完毕,进行模板的自动输出
26.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
27.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
28.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
29.
$handle_controller->auto_display($__tplname);
- /www/website/shop_sstdyf/index.php on line 13
8.
$spConfig['controller_path'] = APP_PATH.'/controller/';
9.
$spConfig['view']['config']['template_dir'] = APP_PATH . template_Url;
10.
11.
require(SP_PATH."/SpeedPHP.php");
12.
// 入口文件全局定义位置 —— 全局定义、应用及操作
13.
14.
spRun();
?>