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

Member Avatar for diafol

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.