• 网站认证
  • 教程:6,666|
  • 话题:6,323|
  • 评论:54|
  • 会员:240|
  • 注册
  • 查看作者
  • 织梦会员空间全站热门文章及最新文章调用代码

    <?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['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 href="{$row['arcurl']}"><img src="{$row['litpic']}">{$row['title']}</a></li>"; } echo $result; ?>  
    

  • 0
  • 0
  • 0
  • 116
  • 请登录之后再进行评论

    登录
  • 做任务
  • 实时动态
  • 偏好设置
  • 单栏布局 侧栏位置: