            return $query->result();
        //}
    }

        public function get_productimages($id=0)
        {
            	$this->db->select('image_path,product_id');
				$this->db->from('product_images');
                                if(isset($id) && $id>0){
				$this->db->where('product_id', $id); 
				}
                           $query = $this->db->get();