时间:2021-07-21人气:-
SQL调用织梦CMS栏目的地址方法,静态时为静态访问地址,动态浏览时为动态访问地址。
12345678$sql="SELECT*FROMdede_arctypewheretopid=0andishidden=0orderbysortrankasc,idasc";$dsql->SetQuery($sql);$dsql->Execute();$topids=array();while($arr=$dsql->GetArray()){$typeurl=GetOneTypeUrlA($arr);//获得栏目地址}