Gotharious Posted November 4, 2011 Share Posted November 4, 2011 Hello all, Many questions from me today, I know, but this is the last one How to make a login system where a user can only see his information, and his followers information (it's a network marketing website). like a tree with A->B->c->d->e A can see all, B can see all except A, C can see all except A and B and so on and also making one admin that can add, remove and modify users Quote Link to comment https://forums.phpfreaks.com/topic/250458-make-a-user-can-only-see-some-information-from-the-database/ Share on other sites More sharing options...
trq Posted November 4, 2011 Share Posted November 4, 2011 This is done by simply storing an access level within the users $_SESSION when they login. You then check this access level as needed. Quote Link to comment https://forums.phpfreaks.com/topic/250458-make-a-user-can-only-see-some-information-from-the-database/#findComment-1285073 Share on other sites More sharing options...
Gotharious Posted November 5, 2011 Author Share Posted November 5, 2011 Fixed it with a switch statement made each role redirects to a different directory Quote Link to comment https://forums.phpfreaks.com/topic/250458-make-a-user-can-only-see-some-information-from-the-database/#findComment-1285332 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.