織夢文章主表關(guān)聯(lián)欄目查詢 生成靜態(tài)url語句
時間: 2019-05-13 10:31
閱讀: 次
作者:素材無憂網(wǎng)
$dsql->SetQuery("SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath FROM `dede_archives` arc LEFT JOIN `dede_arctype` tp on arc.typeid=tp.id WHERE FROM_UNIXTIME(arc.senddate,'%Y-%m-%d') = "."'".date('Y-m-d')."'");
$dsql->Execute();
while ($rows = $dsql->GetArray()) {
$rows['url'] = GetFileUrl($rows['id'],$rows['typeid'],$rows['senddate'],$rows['title'],$rows['ismake'],$rows['arcrank'],$rows['namerule'],$rows['typedir'],$rows['money'],$rows['filename'],$rows['moresite'],$rows['siteurl'],$rows['sitepath']);
$arcArray[] = $rows;
}