Social Network PHP / MySQL Structure

I want to create a site on social networks. I just plan this at the moment, I think that first you need to enter the user into the system by username / password, check on mysql db and see if they exist. It is quite simple. But I ask, for example, for Facebook, for the "Bio" page, would you put things like "choose from friends, where user_id = $ user_id", something like? So do I use the same user_id throughout the page to select comments, contact information, friends, pictures, likes, dislikes? Is this correct or is this a bad application structure?

+3
source share
2 answers

I think you have a long way to go.

, , , , .

, , , , .

, , , facebook.

, .

+6

, ( , , / ) . . , .

( ).

, , .

+1

Source: https://habr.com/ru/post/1786249/


All Articles