So here is my problem: I am designing a website for my project. So a user has got a role, stored as user_role in my database. User roles can be classified as ‘police’, ‘ambulance’, ‘SMF’ or ‘fire’. So if the user logs in as ‘police’, he will be redirected to a specific page and if a user logs in as smf, he will be redirected to another webpage and so on. I am not able to get the proper syntax for logging in through user roles.
Is it possible for me to some suggestions on the php scripts that i can use??
Thank you in advance
Just have a home page for every role like
After you checked the users credentials just relocate him to his role-based home page: