see this
Get data of user after login in PHP
User login with user-Id and Mobile Number. After login I want to display more data about this user from database but when I go to next page it display data from all the Users in table. Here is my ...
The idea is to change some info/fields or to keep info to SESSIONS, and then retrive the needed data.
It depends on how YOU IMPLEMENT the logi, and what info you collect.