why not use Laravel pagination?
How to make 8 entries on a page
I want 8 rows to be printed on each page..i tried it with codeigniter pagination..but pagination is not working..Below i have attached my code..Please help me to achieve this public function Bill_Print() { $this->load->library('pagination');
$config['base_url'] = 'http://localhost:80/Yuva1//TipUp_Loan/Bill_Print/'; $config['total_rows'] = $this->db->get('salesitem')->num_rows(); $config['per_page'] = 8; $config['uri_segment'] = 3; $this->pagination->initialize($config); $Search = $this->input->post('Search'); $this->db->where('billno', $Search); $this->db->select('*'); $this->db->from('salesitem'); $this->db->join('salesbill', 'salesbill.no = salesitem.billno','left outer'); $this->db->join('parmaster','parmaster.Pcode = salesbill.partyname','left outer'); $this->db->join('itemmaster','itemmaster.itcode = salesitem.Product_Code','left outer'); $this->db->$config['per_page']; $query = $this->db->get()->result_array(); $data['query'] = $query; $this->load->view('Inventory/Bill_Print1', $data);
}
Please or to participate in this conversation.