Merendo has a little problem with some my MySQL-query. Maybe you can help me.
Image, I had one table full of groups. Usergroups to be precise. Now there is another table full of users. Each of this users can be a member of any of the groups. (See where I am going? This is the Unix-multiuser system). A third table tells me which user is a member of which group. For example:
Code: Select all
Table users: ID, Name, Adress, Phone, ...
Table usergroups: ID, Name, Description, Blah Blah ...
Table groups_members: ID, UserID, GroupIDCode: Select all
SELECT `users`.`ID` FROM `users`,`groups_members` WHERE (`users`.`ID` != `groups_members`.`UserID`) AND (`groups_members`.`GroupID` = '[Some ID of a group...]');Any idea how I could make this one work?
merendo

