This topic is locked
[SOLVED]

 After Registration

10/7/2018 8:24:08 AM
PHPRunner General questions
gehrenfeld author

After successful registration I want to update the table cookbook_users fields groupid and active.
I tried:



global $dal;

$tblUsers = $dal->Table('cookbook_users');

$tblUsers->Param["ID"]=$userdata["UserID"];

$tblUsers->Value["groupid"]='member';

$tblUsers->Value["active"]=1;

$tblUsers->Update();
CustomQuery($sql);


Did not work. I think because this only works with data the user added.
Thanks