Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function save_request()
- {
- $no = $this->input->get('no');
- $id = $this->input->get('id');
- $requestor = $this->input->get('requestor');
- $section = $this->input->get('section');
- $date = $this->input->get('date');
- $supplier = $this->input->get('supplier');
- $category = $this->input->get('category');
- $status = strtolower($this->input->get('status'));
- $remark = $this->input->get('remark');
- $object = array(
- "request_no" => $no,
- "id_user" => $id,
- "id_section" => $section,
- "date" => $date,
- "id_supplier" => $supplier,
- "id_category" => $category,
- "status" => $status,
- "remark" => $remark
- );
- $data['editdata'] = $this->db->query("SELECT * FROM tb_barang WHERE id_supplier = '$supplier' ")->result_object();
- $this->db->insert("tb_request", $object);
- //$data['page'] = "detail_user";
- $this->load->view('admin/f_item_request', $data);
- }
Add Comment
Please, Sign In to add comment