对应的主题目录下,function get_cat_recommend_type( $cid )
{
{
$sql = "select rc.recommend_type from ".$GLOBALS['ecs']->table( "category" )." as c left join ".$GLOBALS['ecs']->table( "cat_recommend" ).( " as rc on c.cat_id = rc.cat_id where c.cat_id=".$cid );
这个变量为空,其实只要去admin后台把模板管理,设置模板里面的楼层设置都设置正确就行了,也就是补全就行了。页面就不会报SQL错误了。