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

初夏的脚步刚刚走来,人们纷纷把厚重的单衣脱掉,换上了凉爽的短袖,又把旅游鞋换成了颜色各不相同的夹鞋,有淡绿色的;有洁白的;还有深蓝色的……
<?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、关键词、标题及调用全站相关文章方法