V
V
Vlum2015-07-08 22:13:54
PHP
Vlum, 2015-07-08 22:13:54

What is the best way to organize this on your site?

I want to organize groups of people on my site so that everyone can enter / exit, create / delete their own groups, the database has standard columns: id, login, password, avatar, email ..., now I have to create 2 more tables, one a table with values: group id, avatar, and a table users of groups with values: user id, login, avatar and id of the group in which he is a member. For example, when a user clicks the join a group button, the group id is written to the database, I hope I'm digging in the right direction?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Gogolinsky, 2015-07-08
@Vlum

1) Users table
2) Groups table
3) User_group table for many-to-many binding

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question