SSR服务器搭建,VPS搭建SSR,SSR客户端配置,vultr搭建SSR,dedecms,织梦,科学上网,织梦伪静态规则,织梦全站伪静态,织梦手机版伪静态

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

工作手记 baishitou 173℃ 0评论

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

<?php
    $sql = "SELECT * FROM `#@__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 `#@__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;
?>

 

 

 

 

转载请注明:白石头博客 » 织梦DEDECMS会员空间全站最热文章调用代码

喜欢 (0)or分享 (0)

您必须 登录 才能发表评论!