商品详情页如何调用当前栏目的最新产品???

2016-07-07 15:03 来源:www.chinab4c.com 作者:ecshop专家

商品详情页如何调用当前栏目的最新产品???

回答:
SELECT goods_id, goods_name, goods_thumb FROM goods WHERE cat_id = $goods[cat_id] ORDER BY goods_id DESC LIMIT $num

可以详细点吗?我不懂PHP的!

$sql="SELECT goods_id, goods_name, goods_thumb FROM “.$GLOBALS['ecs']->table('goods').” WHERE cat_ ...
zhangyh 发表于 2010-4-5 10:07



不对。用不了。。。