您现在的位置是:博客首页 > 网站开发 > 织梦CMS > 织梦CMS

织梦CMS调用栏目的地址(非标签调用)

互联网2019-05-15个人博客人已围观

简介调动栏目的地址,静态时为静态访问地址,动态浏览时为动态访问地址。 $sql=SELECT * FROM modou_arctype where topid=0 and ishidden = 0 order by sortrank asc,id asc; $dsql-SetQuery($sql); $dsql-Execute(); $ topids =

调动栏目的地址,静态时为静态访问地址,动态浏览时为动态访问地址。
 

$sql="SELECT * FROM modou_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);     //获得栏目地址
}

很赞哦! ()

站点信息

  • 建站时间:2019-05-13
  • 网站程序:魔豆CMS7.5
  • 博客名称:程序员之路
  • 文章统计:117 篇
  • 源码统计:6 篇
  • 访问统计
  • 微信公众号:扫描二维码,关注我们
  • 微信公众号