I'm trying to create a cms which has different user groups. Say admin and registered What i want to do here is that i want only the admin to have the access to admin folder and others whether they are usual users or any other i want to restrict the access to admin folder
// Here is what i have in my db
tabalename.groups (id,name) values (1, 'registered),(2,'admin')
I am assigning these group names by giving the user a group_id but i know it does not have anything to do with the access
So How do i do that in php ??
Your help is appreciated :)