mysql - PHP user permissions - best practice? -


what best practice manage user permissions php/mysql?

what have column in users table called 'permissions', string compared pages.

if($_session['permissions'] == 'administrator' || $_session['permissions'] == 'moderator'){ // stuff } 

i'm sure there better way accomplished in simpler, easier way. recommendations?

how managing 'mysql' permissions? mean controlling actions in website capable of performing database actions, or you're literally needing database access rights management?

if via web, incorporate zend framework's acl if you're looking in depth, or other existing permissions system built in php.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -