<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">

观点

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

DEDE 实现搜索只搜指定多栏目下的文章

时间:2020-12-14

共有两种方式,通过测试第一种比较的好用。如果只是单独的调用一个栏目那么用第二种方法比较的好。
方法1:
//统计列表里的记录

$cquery = "Select * From `archives` arc where arc.typeid not in (1,2,3...) and {$this->AddSql}";

//搜索
        $query = "Select arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule,
        act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath
        from `archives` arc left join `arctype` act on arc.typeid=act.id
        where  act.id not in (4,5,,6....) and {$this->AddSql} $ordersql limit $limitstart,$row";

把sql语句换成我这两句,括号里面的是你不搜索栏目的id

方法2:
<input type="hidden" name="typeid" value="特定栏目id"> 把它放在搜索form里面即可
    0
    首页
    案例
    关于
    联系