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

初夏的脚步刚刚走来,人们纷纷把厚重的单衣脱掉,换上了凉爽的短袖,又把旅游鞋换成了颜色各不相同的夹鞋,有淡绿色的;有洁白的;还有深蓝色的……
<?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;
?>

到此这篇关于织梦会员空间全站热门文章及最新文章调用代码就介绍到这了。莫向不幸屈服,应该更大胆、 更积极地向不幸挑战!更多相关织梦会员空间全站热门文章及最新文章调用代码内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!

标签: 全站