DEDECMS之原生态PHP调用文章列表

require_once(DEDEINC.'/arc.listview.class.php');
$query = "SELECT arc.* , tp.reid , tp.typename , tp.typedir , ch.addtable FROM `#@__archives` arc ".
"LEFT JOIN #@__arctype tp on tp.id=arc.typeid ".
"LEFT JOIN #@__channeltype as ch on arc.channel = ch.id WHERE arc.typeid='5' ORDER BY pubdate DESC LIMIT 0 , 10";
$arctitle = array();
$dsql->SetQuery($query);
$dsql->Execute();
while ($rowarc = $dsql->GetArray()) {
 $arctitle[] = $rowarc;
}
?>


 

        foreach($arctitle as $arc){  
      $arcurls = array();  
      $arcurls = GetOneArchive($arc['id']);    
       ?>
      

  •     }   
      ?>
     



注意:红色部分 

你可能感兴趣的:(DEDECMS,DEDECMS,织梦,原生态php)