SQL語句調(diào)用要指定終極欄目ID,如果不想手動指定多個終極欄目ID,可以用下面方法:
select * from [!db.pre!]ecms_news where checked=1 and ".($class_r[$GLOBALS[navclassid]][islast]?"classid='$GLOBALS[navclassid]'":ReturnClass($class_r[$GLOBALS[navclassid]][sonclass]))." order by newstime desc limit 10