Advertisement
Guest User

Untitled

a guest
Nov 28th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. public function showDataIndustri()
  2. {
  3. $result = $this->auth_model->showDataIndustri();
  4. $dataindustri = [];
  5. $dataindustri['data'] = [];
  6. $buttons = array('<input
  7. type="button"
  8. class="btn btn-default"
  9. onclick="('.$value['kode_industri'].')"
  10. >Edit ');
  11. foreach($result as $index => $value) {
  12. $dataindustri['data'][$index] = array (
  13. $value->nama_industri,
  14. $value->alamat_industri,
  15. $value->telepon_industri,
  16. $value->jurusan,
  17. $buttons
  18. );
  19. };
  20.  
  21. echo json_encode($dataindustri);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement