dedecms运行sql标签调用随机推荐

发表于 2019-08-04   |   分类于 dedecms
{dede:sql sql='SELECT id,title,litpic FROM dede_archives where typeid=1 ORDER BY RAND() LIMIT 9'}
        <li><a href="/[field:id/].html" title="[field:title/]"><img src="[field:litpic/]" alt="[field:title/]" /><span>[field:title/]</span></a></li>{/dede:sql}
© 2019 Powered by Typecho & Theme Quark