Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function listklinik_post()
- {
- $username = trim($this->post('username'));
- if ($username == '') {
- $response = [
- 'resp_error' => true,
- 'resp_msg' => 'Username tidak ditemukan.',
- ];
- } else {
- $listData = $this->db->order_by('klinik_name', 'asc')->get('ehealth_klinik')->result();
- foreach ($listData as $r) {
- $response[] = array(
- 'resp_error' => false,
- 'resp_msg' => 'success',
- 'klinik_id' => $r->klinik_id,
- 'klinik_name' => trim($r->klinik_name),
- );
- }
- }
- $this->response($response, 200);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement