Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function tambah()
- {
- $uri = $this->uri->segment(4);
- $this->_validate();
- $data = array(
- 'pertanyaan' => $this->input->post('pertanyaan'),
- 'a' => $this->input->post('a'),
- 'b' => $this->input->post('b'),
- 'c' => $this->input->post('c'),
- 'd' => $this->input->post('d'),
- 'e' => $this->input->post('e'),
- 'jawaban' => $this->input->post('jawaban'),
- 'kode_soal' => $uri
- );
- $this->DButama->AddDB($this->table,$data);
- echo json_encode(array("status" => TRUE));
- }
Advertisement
Add Comment
Please, Sign In to add comment