Solution for logging and logging access level with php and mysql

Asked

Viewed 18 times

-2

I am developing a website for my final project, but I am having a great difficulty related to access levels, in this site there will be 3 levels of access (student, teacher and company) all containing an individual page for registering to only put a single login page for all levels (a universal login page) and after the validation is sent to their respective pages. example if the user has the student level he will go to page x, if the user has the teacher level he will go to page y.

the difficulty is being to find a possible solution to this problem, in the part in the database or in the logic of programming

I am accepting any type of solution or explanatory videos

Obs: I am a beginner.

  • You have already answered the question. In the database there will be a "level" (a numerical column). Then in your code just give a select at the user level ( what can be done along with the password and salt) and make a switch/if to redirect based on the level.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.