blueman Posted December 2, 2006 Share Posted December 2, 2006 hi, i am trying to create a simple membership system that allows registered members with limited privileges and admin with full privileges. could you give a suggestion? thanks Quote Link to comment Share on other sites More sharing options...
ataria Posted December 2, 2006 Share Posted December 2, 2006 Make a row in the database with the name 'level' (or whatever you want.)then. make it 1 for admin, and, 0 for member.that should solve all your problems. Quote Link to comment Share on other sites More sharing options...
jester626 Posted December 2, 2006 Share Posted December 2, 2006 In addition to what ataria has posted, if you really want to get creative, make the user level 1 and the Admin level 99Then you could have different levels of user priviledges.Hope this tidbit is of some use to youJess Quote Link to comment Share on other sites More sharing options...
AdRock Posted December 2, 2006 Share Posted December 2, 2006 There is a tutorial on this sitehttp://www.phpfreaks.com/tutorials/65/0.php Quote Link to comment Share on other sites More sharing options...
taith Posted December 2, 2006 Share Posted December 2, 2006 what i prefer to do... is have this[code]#security --> 1.1.1.1.1 or 0.0.1.0.1 or the likes$result=mysql_query("SELECT * FROM users WHERE `login`='$id' LIMIT 1");$row=mysql_fetch_array($result);$security=explode(".",$row[security]);[/code]now you can literally turn any feature on/off for some people, and on for others[code]if($security[9]==1) echo 'admin'; #etc[/code] Quote Link to comment Share on other sites More sharing options...
AdRock Posted December 2, 2006 Share Posted December 2, 2006 I used this tutorial for my members system but the page seems to have errorshttp://www.phpfreaks.com/tutorials/40/2.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.