{dede:arclist addfields='cansaidanwei' flag='h' limit='0,1' channelid=20}标题:[field:title/]
{/dede:arclist}上面的是原来的
假设 我想调用文章ID为 11,22,33,44,55,66,77,88,99
这9条数据中的随机一条
麻烦问下 这个模板中的代码怎么写呢?
这样?
{dede:sql sql='Select * from dede_archives where channelid=20 ORDER BY RAND(11,22,33,44,55,66,77,88,99) limit 0,1'}求教 多谢
{/dede:arclist}上面的是原来的
假设 我想调用文章ID为 11,22,33,44,55,66,77,88,99
这9条数据中的随机一条
麻烦问下 这个模板中的代码怎么写呢?
这样?
{dede:sql sql='Select * from dede_archives where channelid=20 ORDER BY RAND(11,22,33,44,55,66,77,88,99) limit 0,1'}求教 多谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货