Bindings and xss for Accumulated-Model

This commit is contained in:
int2001
2024-08-12 12:02:16 +00:00
parent 5e0c8faf59
commit f8146133b5
2 changed files with 189 additions and 165 deletions

View File

@@ -40,10 +40,10 @@ class Accumulated extends CI_Controller
{
//load model
$this->load->model('accumulate_model');
$band = $this->input->post('Band');
$award = $this->input->post('Award');
$mode = $this->input->post('Mode');
$period = $this->input->post('Period');
$band = xss_clean($this->input->post('Band'));
$award = xss_clean($this->input->post('Award'));
$mode = xss_clean($this->input->post('Mode'));
$period = xss_clean($this->input->post('Period'));
// get data
$data = $this->accumulate_model->get_accumulated_data($band, $award, $mode, $period);