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?
source
share