longjianghu 发表于 2009-7-6 18:02:24

显示特定字段为什么只显示第一个?

$this->db->select ('brand_id','brand_name','brand_logo');
$this->db->where ( 'brand_id <', '10' );
$this->db->orderby ( 'brand_id', 'desc' );
$query = $this->db->get ('ecs_brand');
echo '<pre>';
foreach ( $query->result () as $row ) {
   print_r ( $row );
}

visvoy 发表于 2009-7-6 18:37:40

应当是$this->db->select ('brand_id,brand_name,brand_logo');
页: [1]
查看完整版本: 显示特定字段为什么只显示第一个?