24、SQL调用非终极栏目处理技巧

SQL语句调用要指定终极栏目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