0

here i want to display images according to the numbers given
here is my view page

<div class="limiter hidden-xs">
                                        <label>Show</label>
                                        <select>
                                            <option selected="selected" value="">9</option>

                                            <option value="">12</option>
                                            <option value="">24</option>
                                            <option value="">36</option>
                                        </select>
                                        per page        
                                    </div>

my controler section is this

public function look_book() 
    {
        $data['active_mn']='look_book';
        $config['base_url'] = base_url().'roxcontrol/look_book';
        $config['per_page'] = 9;
        $config['uri_segment'] = 3;
        $config['total_rows'] = $this->roxmodel->count_gallery();
        $data['galery']=$this->roxmodel->get_gallery($config['per_page'],$this->uri->segment(3));

        $this->load->library('pagination',$config);
        $data['page_links'] = $this->pagination->create_links();
        $this->load->view('look_book',$data);
    }

my model page looks like this

public function get_gallery($num,$offset)
    {
      $this->db->order_by("gallery.id","desc");

      $query=$this->db->get('gallery',$num,$offset);
      return $query->result();
    }

i want to diplay according to the selected please help me

2
Contributors
1
Reply
6
Views
1 Year
Discussion Span
Last Post by diafol
0

ANy chance of you explaining what's not working? Dumping your code and asking a vague question ain't much help. Getting any errors?

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.