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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -