The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
write to second table during registration - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: write to second table during registration (/showthread.php?tid=937)



write to second table during registration - medtrans - 02-07-2018

I watched your video on adding code to add userid to a second table during manual creation. Where is the code to insert a userid in second table when the user performs registration.

Thanks


write to second table during registration - Brandin - 02-07-2018

You could use during_user_creation in usersc/scripts (I think or includes) and use the variable that is assigned to $db->lastId(); on join.php.