+ -
当前位置:首页 → 问答吧 → 紧急求助喔~~ 关于分类的

紧急求助喔~~ 关于分类的

时间:2011-06-21

来源:互联网

CommAction.class.php

$Products_Cache['webs']=self:Model->where("isnew=1  and isdown!=1 and  cateid=1 ")->order("id asc")->limit("0,$recpro_num")->findall();

我想问一下

一个 cate_id的大类为1的前提下

有 二级分类  cate_id分别为 2 3 4

我用
$Products_Cache['webs']=self:Model->where("isnew=1  and isdown!=1 and  cateid=2,3,4 ")->order("id asc")->limit("0,$recpro_num")->findall();
调用 根本不行

$Products_Cache['webs']=self:Model->where("isnew=1  and isdown!=1 and  cateid=2 and  cateid=3 and  cateid=4 ")->order("id asc")->limit("0,$recpro_num")->findall();

也不行

$Products_Cache['webs']=self:Model->where("isnew=1  and isdown!=1 and  cateid=1 ")->order("id asc")->limit("0,$recpro_num")->findall(); 这样调用的话

1的下面的 2 3 4也不能调用在首页 很烦

希望大家提供帮助喔

作者: youwei   发布时间: 2011-06-21

跪求楼下的帮助喔

作者: youwei   发布时间: 2011-06-21