ahmadmunif

model

Oct 22nd, 2020
595
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function insert_guru($data_guru, $data_status)
  2.     {
  3.         $this->db->table('tbl_guru')->insert($data_guru);
  4.         foreach ($data_status as $key => $value) {
  5.             $result[]=array(
  6.                 'no_ukg'=> $data_guru['no_ukg'],
  7.                 'status'=> $value['status']
  8.             );
  9.             $this->db->table('tbl_guru_detail')->insert($result);
  10.         }        
  11.     }
RAW Paste Data