Dear all,
I have a problem with save multiple data, I have two tables that have relations with id_permohonan.
1. tbl_t_permohonan
2. tbl_t_file_upload
I already success to save link of multiple upload, but it's not save id_permohonan as relation.
this is custom code after upload
That custom code only save link of file upload to tbl_t_file_upload. How to save id_permohonan to tbl_t_file_upload?
I have a problem with save multiple data, I have two tables that have relations with id_permohonan.
1. tbl_t_permohonan
2. tbl_t_file_upload
I already success to save link of multiple upload, but it's not save id_permohonan as relation.
this is custom code after upload
<?php
if ($form->data["nama_file1"] !=""){
$form->data["namalist"]["0"]["nama_file"] = $form->files["nama_file1"]["link"];
}
if($form->data["nama_file2"] !=""){
$form->data["namalist"]["1"]["nama_file"] = $form->files["nama_file2"]["link"];
}
?>
That custom code only save link of file upload to tbl_t_file_upload. How to save id_permohonan to tbl_t_file_upload?