<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦dedecms调用指定栏目的信息

时间:2020-12-10

/**
 * 调用指定栏目的信息
 * @param  int  $channelid [栏目ID]
 * @param  string  $field     [调用字段,默认整个数组]
 * @return string || array
 */
function getChannelInfo($channelid, $field) {
global $dsql;
$channelid = (int) $channelid;
$sqlquery = "SELECT * FROM `dede_arctype` WHERE `id` = '{$channelid}' LIMIT 0,1";
$cInfo = $dsql->GetOne($sqlquery);
if (!is_array($cInfo) || empty($cInfo)) {
return FALSE;
}
if (!empty($field)) {
return $cInfo[$field];
}
return $cInfo;
}
0
首页
案例
关于
联系