Each user has a personal account. How to make it so that you can see the information from other users in the user's personal account (like VKontakte, when you click on your friend, transfers to his account). But I can understand how to implement? Tell me please.

  • @ angers777, Try to write more detailed questions. Explain ... - Alexey Lobanov
  • one
    You lead code? =))) Think with your head, you need it not to eat the cakes. Having solved the problem yourself, you will save yourself from similar problems and, possibly, their derivatives in the future. - Salivan
  • one
    "I have a website, I want a user to see it, who will do it for free?" - the question looks like this - VasyOk
  • VasyOk "Can't figure out how to implement?" and "Make it free", is there a difference ?? - angers777

2 answers 2

<? if(isset($_GET['user_id'])){ // если передан id пользователя echo "информация о стороннем пользователе"; } else{ // тут ещё должна быть проверка на авторизованность // если пользователь вошел в личный кабинет, выводим информацию о нем } ?> 

    Vkontakte it is implemented so. When you go to another user’s page, the user_id the user to whom you are logged in is obtained, and therefore all data on this user_id with select и mysql_fetch_assoc taken from the select и mysql_fetch_assoc .