Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

相关阅读的连接是空。

[复制链接]
geforce2008 发表于 2014-8-11 15:12:49 | 显示全部楼层 |阅读模式
相关阅读的连接是空。代码如下:

相关阅读的连接是空。
$article['related'] = array();
$query = DB::query("SELECT aid,title
FROM ".DB::table('portal_article_title')." where catid='$article[catid]' order by rand()

limit 12");
while ($value = DB::fetch($query)) {
        $article['related'][] = $value;
}



-----------------------------------------------------------------------

<!--{if $article['related']}-->
                <div id="related_article" class="bm">
                        <div class="bm_h cl">
                                <h3>{lang view_related}</h3>
                        </div>
                        <div class="bm_c">
                                <ul class="xl xl2 cl" id="raid_div">
                                <!--{loop $article['related'] $raid $rvalue}-->
                                        <input type="hidden" value="$raid" />
                                        <li>&bull; <a href="{$rvalue[uri]}">{$rvalue

[title]}</a></li>
                                <!--{/loop}-->
                                </ul>
                        </div>
                </div>
                <!--{/if}-->

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-26 07:32 , Processed in 0.023717 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表