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

夕阳的金辉把绿色的林海染成金黄一片。火红的太阳慢慢地西落了,归鸟们纷纷从我头上飞过,飞回到它们的小巢。一轮明月从东方静悄悄地升上来。夜空中美丽的星星,似乎在眨着眼睛对我说:夜,来了!
<?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 rel="nofollow noopener noreferrer" 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 rel="nofollow noopener noreferrer" href=\&;{$row['arcurl']}\&;><img src=\&;{$row['litpic']}\&;>{$row['title']}</a></li>";
}
echo $result;
?>

本文织梦会员空间全站热门文章调用代码到此结束。其实根本就没有什么“假如”,每个人的人生都不可重新设计。小编再次感谢大家对我们的支持!

您可能有感兴趣的文章
dedecms好代码教程:如何让织梦变成全站动态浏览有利于优化

织梦DEDE评论调用,DEDE全站评论总数调用以及与如何使用方法

织梦dedecms 5.3/5.5全站伪静态含SEO重复记录优化

DedeCMS任意模版调用全站随机文章的方法

织梦相关文章标签匹配tag、关键词、标题及调用全站相关文章方法