|
From: Don Don on 25 Jul 2008 10:59 Hi All, Has anyone created or has tips for the creation of user groups in a app. e.g. a Facebook group ? I am trying to create groups in a social application where users on the site can join a group etc its just much like a facebook group. Any help will be appreciated. Ta.
From: "Dan Shirah" on 25 Jul 2008 11:08 Since I would assume a user could be a part of any number of groups, I would suggest that you just make a seperate table. Maybe with simple columns like this: //GROUP TABLE key group_id member_id join_date Then you can just compare it to your member table when someone tries to access a group page. And then use a simple query and allow access to the group page if member_id in your members and group table is the same, and the group_id they are trying to access matches the group_id in the table. Or something like that... Dan On 7/25/08, Don Don <progwihz(a)yahoo.com> wrote: > > Hi All, > > Has anyone created or has tips for the creation of user groups in a > app. e.g. a Facebook group ? > > I am trying to create groups in a social application where users on the > site can join a group etc its just much like a facebook group. > > Any help will be appreciated. > > Ta. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
|
Pages: 1 Prev: Code works alone but not with other code. Next: Stumped I Tell You! |