Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Class Report extends CI_Controller{
- function index(){
- $this->load->view('admin/report');
- }
- function post_report(){
- $this->load->model("crud_model");
- $where['date >='] = $this->input->post('startdate');
- $where['date <='] = $this->input->post('enddate');
- $data['total'] = $this->crud_model->total('transaction', 'total', $where)->row();
- $data['report'] = $this->crud_model->tampil_id('transaction', $where)->result();
- $this->load->view('admin/report', $data);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment