10
christian,
I used the original script (slightly changed) to do the job but I realised I need the users added to 2 groups. I had a look at the changed script you made and in reference to this section:
//Add user in group
$numgroup ='2';
$query = "INSERT INTO xoops_groups_users_link (groupid, uid) VALUES('$numgroup', '$uid')";
$result= mysql_query($query);
If I wanted to add the user to 2 groups when running the script (lets say groups 2 and 6) how would I change the script to make this happen? Any help would be appreciated.
Cheers