I need a query to update all members who belong to a certain usergroup (42) so that their displaygroupid = that usergroup (42).
This works:
but it only checks the first group in the membergroupids field. If the member also belongs to other groups with lower ids, it doesnt work. Is there a way to loop through each member's membergroupids field for the match?
Any help? Thanx.
This works:
Code:
update user set displaygroupid = 42 where membergroupids = 42
Any help? Thanx.
Comment