I use the following code as event after successful register.
$sql = "INSERT INTO fse_ugmembers (UserName, GroupID) values ($userdata["username"], $userdata["grade"])";
CustomQuery($sql);
but it doesn't add the values to the mentioned table.
Also, gives an error after registration.
BR,
Mahmoud