Advertisement
jamboljack

Chart Education Json

Jun 21st, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. // Education
  2. $education              = $this->home_model->select_education()->result();  
  3.             $labeleducation_array   = array();
  4.             $jumlaheducation_array  = array();   
  5.             foreach ($education as $row) {
  6.                 $labeleducation_array[]  = $row->education_name;                       
  7.                 $jumlaheducation_array[] = (int)$this->home_model->select_by_education($row->education_id)->row()->total;
  8.             }
  9.  
  10.             $data['labeleducation']  = json_encode($labeleducation_array);
  11.             $data['jumlaheducation'] = json_encode($jumlaheducation_array);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement