PhpCms V9调用指定栏目子栏目文章的两种方法 第一种.直接写子栏目id ,用cat in {pc:get sql="SELECT * from v9_news where status=99 and catid in(21,22,23,24,25) order by id DESC" num="7" return="data"} {loop $data $r} {str_cut($r['title'],40)}({date('m-d',$r
示例:{pc:get sql="SELECT * from v9_news where status=99 and catid in(6,7,8) order by id DESC" num="10" return="data"}{loop $data $r}<a href="{$r[url]}">{$r[title]}</a>{/loop}{/pc}解析:在使用过程中请将表前缀v9_修改为你自己的表前