0
All users have one profile
I made login, registration and profile and I also added function for posting pictures with description but when I post pictures from different user accounts, they are posted on one profile.php page and every user post pictures on same page. They don't have their own profile page and profile link, something like profile.php?id=1. Can someone say to me what code I need to add on my profile.php or registration.php https://code.sololearn.com/wbcGm6OKWJxN/?ref=app
1 Respuesta
+ 1
Aleksa
Every user have their own unique id suppose profileId. So whenever any user will login then you have to store profileId in session. Every session will be different from other users so no need to worry. Whenever any user will post pictures then using that profileId which is store in session, you can update records or insert new data.