I have to make a website in which there are different levels of administration, i am confused on what will be the basic db and code logic to do that in php? Farhan
Make an extra row with a level label, so you can have an admin with level a, b, c, etc...
Then in your PHP you have to do something like:
if ($admin = true && $level = 'a'){ } elseif ($admin = true && $level = 'b') {
And so on!
ive personally built a security class that is based on the linux permisions scheme. every article has an owner, group and other security setting. if you know anything about linux you will know what i meen, and it wasn't too difficult to setup. this enables me to lock down sections and articles with much greater flexability than just issuing security levels.