我目前在将值从数据库中扣除到我的字段时遇到问题
这是我的代码
在我的模型中,我有一个名为 deduct
public function deduct($id){
$data = array(
'loan' => $this->input->post('loan'),
'id' => $id,
'loan_type' => $this->input->post('loan_type'),
'loan_amount' => $this->input->post('loan_amount'),
'firstname' => $this->input->post('firstname'),
'lastname' => $this->input->post('lastname'),
'middlename' => $this->input->post('middlename'),
'gender' => $this->input->post('gender'),
'civilstatus' => $this->input->post('civilstatus'),
'birthday' => $this->input->post('birthday'),
'age' => $this->input->post('age'),
'dependents' => $this->input->post('dependents'),
'spousefirstname' => $this->input->post('spousefirstname'),
'spouselastname' => $this->input->post('spouselastname'),
'spousemiddlename' => $this->input->post('spousemiddlename'),
'spouseage' => $this->input->post('spouseage'),
'spousebirthday' => $this->input->post('spousebirthday'),
'homeaddress' => $this->input->post('homeaddress'),
'zipcode' => $this->input->post('zipcode'),
'lengthofstay' => $this->input->post('lengthofstay'),
'hometype' => $this->input->post('hometype'),
);
}
汪汪一只猫