上架
价格
更新
人气
1/1
4个商品
浏览历史
温馨提示

确定取消
温馨提示

关闭
您尚未登录

用户登陆

立即注册
忘记密码?
array( 'id' => $row['attr_id'], 'attr' => $row['attr_name'], 'options' => $attr_value, 'type' => 3 ); } else { $attributes['attr'][] = array( 'id' => $row['attr_id'], 'attr' => $row['attr_name'], 'type' => $row['attr_index'] ); } } } return $attributes; } function get_evaluation_sum($goods_id) { $sql = "SELECT count(*) FROM " . $GLOBALS['yp']->table('comment') . " WHERE status=1 and comment_type =0 and id_value =".$goods_id ;//status=1表示通过了的评论才算 comment_type =0表示针对商品的评价 感谢zhangyh的提醒 return $GLOBALS['db']->getOne($sql); } ?>