U
|
ustunsoz author 12/5/2021 |
I forgot the add last line in Custom event code: $data = array(); |
J
|
John 12/5/2021 |
Use last insert function DB::LastId() from database. See https://xlinesoft.com/phprunner/docs/db_lastid.htm John |
U
|
ustunsoz author 12/5/2021 |
Thanks John, I have alrady tried as follow; $data = array(); end then After record added: $data = array(); The first record posting to 1st table but, second table dont get any insert and I ma not getting any error message too |
U
|
ustunsoz author 12/5/2021 |
Sorry in first code the last line was typo, the actual one as follow: $_SESSION['comp_id'] = DB::LastId(); |
U
|
ustunsoz author 12/6/2021 |
I have found the issue that not related to above code, related to table structure! (One of the field expecting a default value) Now the above code doing the job |