爱玺玺

爱玺玺的生活日记本。wx:lb87626

织梦sql标签在文档页调用当前文档的id就是~id~,sql标签调用文章列表。

{dede:sql sql='Select arc.title,arc.litpic from mzm_archives arc left join mzm_addonarticle addon  on addon.aid = arc.id 

where find_in_set(arc.typeid,(select group_concat(id) from mzm_arctype where reid=(select reid from mzm_arctype 

where id=(select typeid from mzm_archives where id=~id~))))'} 


  [field:title/] 


{/dede:sql}


发表评论:

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5