r/PHPhelp • u/Adventurous_Onion103 • Jul 04 '25
How to make multiple user roles that have different permissions using phpadmin
I am new to php I have tried to look online for answer on this issue but I cannot find a trustworthy source I need to know how to make multiple roles that have different permissions i am sorry if I am not using correct terminology. I need to make a website that has different users with each user has different levels of access is this too advanced for me or would I have to try a different language altogether
3
Upvotes
5
u/abrahamguo Jul 04 '25
This is perfectly doable. If you have a database table for users, simply give each user an attribute reflecting what level of permission they have.
2
u/spellenspelen Jul 04 '25
In addition to what others have said. The fact that you're using phpmyadmin has nothing to do with how to create permissions within your application. You might be getting search results for database level permissions which is something else entirely.
1
u/TonyMarston Jul 05 '25
What you are looking for is called Role Based Access Control (RBAC) which cannot be done using phpmyadmin. You need to design your own database to support users, roles and permissions. Look it up on Google using https://www.google.com/search?q=php+role+based+access+control
0
u/Adventurous_Onion103 Jul 04 '25
Could you tell me what you mean by that