Skip to main content
added 71 characters in body
Source Link
url:"<?php echo base_url(); ?>Dashboard/ict_report/" + star_date +"-"+ end_date,

so at your ict_report method .. you have all post data and 2 parameter as start date and end date .... with help of it get data from db ... and the resulted array ... merge all array into one ... and echo the result as json_encoded ...

and at you js ... parse you json_encoded data...

var data = JSON.parse( data );
console.log(data.arrayKey);
url:"<?php echo base_url(); ?>Dashboard/ict_report/" + star_date +"-"+ end_date,

so at your ict_report method .. you have all post data and 2 parameter as start date and end date .... with help of it get data from db ... and the resulted array ... merge all array into one ... and echo the result as json_encoded ...

and at you js ... parse you json_encoded data...

url:"<?php echo base_url(); ?>Dashboard/ict_report/" + star_date +"-"+ end_date,

so at your ict_report method .. you have all post data and 2 parameter as start date and end date .... with help of it get data from db ... and the resulted array ... merge all array into one ... and echo the result as json_encoded ...

and at you js ... parse you json_encoded data...

var data = JSON.parse( data );
console.log(data.arrayKey);
Source Link

url:"<?php echo base_url(); ?>Dashboard/ict_report/" + star_date +"-"+ end_date,

so at your ict_report method .. you have all post data and 2 parameter as start date and end date .... with help of it get data from db ... and the resulted array ... merge all array into one ... and echo the result as json_encoded ...

and at you js ... parse you json_encoded data...