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