I have succesfully solved this problem using the solution found here: https://forums.appgini.com/phpbb/viewtopic.php?t=2524
However the code does not work if I use the return FALSE. Here is my code:
Code: Select all
function espacios_after_insert($data, $memberInfo, &$args) {
$memberid1 = ($memberInfo['username']);
$num_esp = $data['num_esp'];
sqlvalue("INSERT INTO ocupacion (ing_ocupa, sal_ocupa, disp_ocupa, usid_ocupa) VALUES (0, 0, '$num_esp', '$memberid1')");
/*Assigning the record to the user*/
$id_ocupa=sqlValue("select `id_ocupa` from `ocupacion` where `usid_ocupa`='$memberid1'");
set_record_owner("ocupacion", $id_ocupa, $memberid1);
return TRUE;
}
Should I expect any issues when return FALSE is not used?
Thanks in advance for your help.
Wilfredo Mira