Hi, thank you all.. Sorry for my bad English, but I need this for the current users membership only. I will explain why: I want to check which rights the person has and then supply him with an options menu based on that query (applicable to every query I choose). In this example "admin".

Let's say he is member of Miami Admins and New York Admins. He starts the script and the script runs a query on "admin". It returns those two groups that will appear in his menu like

"Select your options:
1. Miami Admin options
2. New York Admin options"

This script would make my life so much easier ;-))