Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Total Laporan Pelaksanaan
- public function jumlahpelaksanaan_post()
- {
- $username = trim($this->post('username'));
- if ($username == '') {
- $response = [
- 'resp_error' => true,
- 'resp_msg' => 'Username kosong.',
- ];
- } else {
- $this->db->select('count(propose_id) as jumlah');
- $this->db->from('lemlit_propose');
- $this->db->where('propose_status', 3);
- $total = $this->db->get()->row();
- $response = [
- 'resp_error' => false,
- 'resp_msg' => 'success',
- 'total' => number_format($total->jumlah, 0, '', ','),
- ];
- }
- $this->response($response, 200);
- }i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement