共有两种方式,通过测试第一种比较的好用。如果只是单独的调用一个栏目那么用第二种方法比较的好。
方法1:
//统计列表里的记录
$cquery = “Select * From `archives` arc where arc.typeid not in (1,2,3…) and {$this->AddSql}”;
//搜索
把sql语句换成我这两句,括号里面的是你不搜索栏目的id
方法2:
共有两种方式,通过测试第一种比较的好用。如果只是单独的调用一个栏目那么用第二种方法比较的好。 方法1: //统计列表里的记录 $cquery = Select * From `archives` arc where arc.typeid not in (1,2,3…) and {$this-AddSql}; //搜索 $query = Selec
共有两种方式,通过测试第一种比较的好用。如果只是单独的调用一个栏目那么用第二种方法比较的好。
方法1:
//统计列表里的记录
$cquery = “Select * From `archives` arc where arc.typeid not in (1,2,3…) and {$this->AddSql}”;
//搜索
把sql语句换成我这两句,括号里面的是你不搜索栏目的id
方法2: