织梦会员空间全站热门文章及最新文章调用代码

<?php $sql = "SELECT * FROM `dede_archives` WHERE arcrank > -1 ORDER BY click desc LIMIT 10"; $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')) { $arcrow = GetOneArchive($row['id']); $row['arcurl'] = $arcrow['arcurl']; $row['pubdate'] = MyDate('Y-m-d',$row['pubdate']); $row['litpic'] = $row['litpic'] = $row['litpic']=='' ? '/images/defaultpic.gif' : $row['litpic']; $result .= "<li><a href="{$row['arcurl']}"><img src="{$row['litpic']}">{$row['title']}</a></li>"; } echo $result; ?>   

织梦会员空间全站最新文章调用代码

<?php $sql = "SELECT * FROM `dede_archives` WHERE arcrank > -1 ORDER BY click id LIMIT 10"; $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')) { $arcrow = GetOneArchive($row['id']); $row['arcurl'] = $arcrow['arcurl']; $row['pubdate'] = MyDate('Y-m-d',$row['pubdate']); $row['litpic'] = $row['litpic'] = $row['litpic']=='' ? '/images/defaultpic.gif' : $row['litpic']; $result .= "<li><a href="{$row['arcurl']}"><img src="{$row['litpic']}">{$row['title']}</a></li>"; } echo $result; ?>

给TA打赏
共{{data.count}}人
人已打赏
网站教程

最新织梦cms漏洞之安全设置,有效防护木马

2020-1-15 8:00:00

网站教程

织梦dedecms做的网站首页标题篡改跳转赌博网站解决方案

2020-1-17 8:00:00

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索