Pixulated
Pixulated

Reputation: 33

What is the best way to go about connecting users within a database into a relationship which can be identified?

I need to connect users, so that for example a user can connect/follow another user through a button/link on their profile page. This would then allow them to view their (user now connected with) future news items which they post on the site and which are stored within the database.

How would I go about doing this within a table for say, MySQL?

I already have a user table created, and also have a news_item table.

Upvotes: 1

Views: 82

Answers (1)

Mohsen Heydari
Mohsen Heydari

Reputation: 7284

A template model for self many-to-many relation.

draft model

Upvotes: 1

Related Questions