Use
code:
$index=0
do
$group=enumgroup($index)
? $group
$index=$index+1
until len($group)=0

in front of your SELECT-CASE statement to print out all the groups the user is a member of.
_________________________
There are two types of vessels, submarines and targets.