Jump to content

levels


ecabrera

Recommended Posts

 

If you are writing your app from scratch...

 

In your database, in your members table insert a column titled 'type'. Against each admin insert the number you wish to represent admin, eg 1.. for your other non admin members insert say 5... The reason I say 5 and not 2 is to allow your app to grow at a later date... EG you may wish to insert different levels of admin at a later date which may want to hold value 1 to 4...

 

Then in your authenticate script, set a session according to the type filed in you members table.

Link to comment
https://forums.phpfreaks.com/topic/260581-levels/#findComment-1335490
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.