I am trying to create roles and permissions functions in php. I have checked some tutorials
but it is not clear that the permissions are that of the ones granted by mysql or they are improvised in php.
For example if I have roles like admin
and user
and developer
, so should I have to create different users in database and then use those to perform different operations or should I create one root
user and then control the access in php. To me it seems like the database should restrict it by having different users.