Вот моя проблема. Я сохранял данные в БД, и эта ошибка показывает.
Сообщение об ошибке
"Сообщение: слишком мало аргументов для работы
Model_properties :: Declare_existing_save (), 32 передано в
C: \ XAMPP \ HTDOCS \ amilyar \ приложения \ Контроллеры \ Applicant_properties.php
на строке 113 и ровно 38 ожидаемых "
Вот мой код под Model_properties
public function declare_existing_save($email,$tdn,$pin,$owner_name,$owner_address,$admin_name,$admin_address,$prop_no_street,$prop_barangay,$prop_province,$prop_cert,$prop_cadastral,$prop_ass_lot,$prop_bnorth,$prop_beast,$prop_bwest,$prop_bsouth,$with_ia,$ia_ow_total,$ia_as_total,$with_ib,$ib_ow_total,$ib_as_total,$with_ii,$ii_ow_total,$ii_as_total,$with_iiia,$iiia_ow_total,$iiia_as_total,$with_iiib,$iiib_ow_total,$iiib_as_total,$prop_id,$kind,$use,$mvalue,$level,$value){
$sql = "INSERT INTO amilyar_properties (
email,
prop_record_type,
prop_tdn,
prop_pin,
prop_owner,
prop_owner_address,
prop_name_of_admin,
prop_name_of_admin_address,
prop_no_street,
prop_barangay,
prop_province,
prop_certificate_title_no,
prop_cadastral_lot_no,
prop_assessor_lot_no,
prop_bound_north,
prop_bound_east,
prop_bound_west,
prop_bound_south,
prop_type_IA,
ia_total,
ia_as_total,
prop_type_IB,
ib_total,
ib_as_total,
prop_type_II,
ii_total,
ii_as_total,
prop_type_IIIA,
iiia_total,
iiia_as_total,
prop_type_IIIb,
iiib_total,
iiib_as_total,
prop_approved,
date_created
) VALUES (
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
?
)";
$data = array(
$email,
2,
$tdn,
$pin,
$owner_name,
$owner_address,
$admin_name,
$admin_address,
$prop_no_street,
$prop_barangay,
$prop_province,
$prop_cert,
$prop_cadastral,
$prop_ass_lot,
$prop_bnorth,
$prop_beast,
$prop_bwest,
$prop_bsouth,
$with_ia,
$ia_ow_total,
$ia_as_total,
$with_ib,
$ib_ow_total,
$ib_as_total,
$with_ii,
$ii_ow_total,
$ii_as_total,
$with_iiia,
$iiia_ow_total,
$iiia_as_total,
$with_iiib,
$iiib_ow_total,
$iiib_as_total,
0,
today()
);
$this->db->query($sql,$data);
return $this->db->insert_id();
$sql = "INSERT INTO `amilyar_declaration_assessment`(`prop_id`, `asm_kind`, `asm_use`, `asm_mvalue`, `asm_level`, `asm_value`, `enabled`) VALUES (?,?,?,?,?,?,?)";
$data = [$prop_id,$kind,$use,str_replace(",","",$mvalue),$level,str_replace(",","",$value),1];
$query = $this->db->query($sql,$data);
return $this->db->affected_rows();
}
Заранее спасибо.