[thelist] PHP Login from Evolt site.

Jeremy Weiss eccentric.one at gmail.com
Tue Apr 10 15:47:49 CDT 2007


A while back I built a concept site using this script. What I did, though,
was create two new tables in the db, a roles table to list all the possible
roles and a user_roles table linking the PK from the user table and the PK
from the roles table. Of course I was keeping the single level of authority,
but it seems that you could easily have multiple levels using this format.
Then if a page requires a person to be a member of group 4 then you just
query the user_roles table for user-id WHERE roles = 4.  Of course I'm sure
there's a better way.

My $.02 worth

-jeremy
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Online Lead Generation & Internet Consulting
http://www.BluePhoenixConsulting.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the thelist mailing list