首页 > 教程 >

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

2023-02-26教程围观

简介

  
<?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[' ']}</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[' ']}</a></li>";}echo $result;?>

下载链接:网站源码/小程序源码/网站模板下载

Tags: 会员 织梦 代码 文章 全站