0

hi...iamb struggling with this code please help me
my controller is this ..

public function men_clothing() 
    {
        $data['active_mn']='men_clothing';

        $data['men']=$this->roxmodel->get_category_by_parent($p_id=8);
        $data['kids']=$this->roxmodel->get_category_by_parent($p_id=9);
        $data['galllery']=$this->roxmodel->get_galleryImages($p_id=10,11);
     }

my model page looks like this...

public function get_galleryImages($p_id)
  {
    $this->db->where('gallery.category_id',$p_id);

    $query = $this->db->get('gallery')->result();
    return $query;

  } 

my view page looks like this...

<?php foreach($galllery as $row){?> <img  ima="<?php echo base_url();?>images/<?php echo $row->image;?>" src="<?php echo base_url();?>images/<?php echo $row->image;?>" alt="" /> <img ima="<?php echo base_url();?>images/<?php echo $row->image;?>" src="<?php echo base_url();?>images/<?php echo $row->image;?>" alt="" /> <div class="product-content"> <h2 class="product-name"><a href="<?php echo base_url();?>roxcontrol/product_details"><?php ech$row->title;?> </a></h2> <p><?php echo $row->description;?></p> </div> <?php }?> 
2
Contributors
2
Replies
16
Views
1 Year
Discussion Span
Last Post by gentlemedia
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.