Im currently in a school-project and we are doing a site where there are three diffrent types of roles.
In our user-table we have an attribute named "role". This role has a table with 3 different values, 1, 2 and 3.
1 (Admin) 2 (Adminuser) 3 (user).
What I want is: When someone is logging in, the code wants to look for what value in role this user has and then redirecte this user to "admin.php" (if the value is 1), "adminuser.php" (if the value is 2) or "user.php" if the value is 3.
Thanks in regards.
Aucun commentaire:
Enregistrer un commentaire