0

I'm learning php and my dad told me to make somthing where you login and if the person has a certain permission can see somthing diffrent then a diffrent user how would i go about this?

3
Contributors
7
Replies
8
Views
5 Years
Discussion Span
Last Post by diafol
0

setup a database
create user structure / permission levels
use sessions for php login page
have user enter info then when he hits submit
check the database for user and if password is correct
then check permissions table to see available permissions
then send the user to another page or something based on those

would you need like code samples or just a ruff outline

0

Code samples would be nice making the database for permissions is what confused me most about that i already have a working login right now i just need the permissions working

0

I'm using linux right now with just xampp (lampp) to test with but my dad gave me a subdomain on his domain to test on if id like to.

0

xampp is fine you have a tool called phpmyadmin you can use that to set up a new table for the users permissions

0

As H44th states - you need to set a permission for each user. Are you up to speed on DB relational models?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.