Skip to main content
 Web开发网 » 站长学院 » 织梦教程

SQL调用织梦CMS栏目的地址方法

2020年09月12日8310百度已收录

SQL调用织梦CMS栏目的地址方法,静态时为静态访问地址,动态浏览时为动态访问地址。

 

$sql="SELECT * FROM dede_arctype where topid=0 and ishidden = 0 order by sortrank asc,id asc";

$dsql->SetQuery($sql);

$dsql->Execute();

$topids= array();

while($arr = $dsql->GetArray())

{

$typeurl = GetOneTypeUrlA($arr);     //获得栏目地址

}


 

评论列表暂无评论
发表评论
微信