phpcms如何实现列表页无法显示某个推荐位文章的

此实际效果仅考虑独特必须,用的人很少,因此但是多讲明。

详尽标识以下:

{pc:get sql= SELECT id FROM v9_position_data WHERE posid = 2 AND catid =$catid ORDER BY v9_position_data . id DESC num= 10 }

{loop $data $d}

{pc:get sql= SELECT url , title FROM v9_news where id $d[id] AND catid =$catid ORDER BY v9_news . inputtime DESC num= 10 return= info }

{loop $info $r}

li a href= {$r[url]} title= {$r[title]} {$r[title]} /a /li

{/loop}

{/pc}

{/loop}

{/pc}



扫描二维码分享到微信