dirt Posted March 16, 2006 Share Posted March 16, 2006 i have created registry for new users.how do i set the priorities of the members. for the user that choosespackage one can only choose one item if it is package two the user can choosetwo items. how do i go about. Link to comment https://forums.phpfreaks.com/topic/5101-membership-level/ Share on other sites More sharing options...
Prismatic Posted March 16, 2006 Share Posted March 16, 2006 [!--quoteo(post=355634:date=Mar 16 2006, 02:10 PM:name=dirt)--][div class=\'quotetop\']QUOTE(dirt @ Mar 16 2006, 02:10 PM) [snapback]355634[/snapback][/div][div class=\'quotemain\'][!--quotec--]i have created registry for new users.how do i set the priorities of the members. for the user that choosespackage one can only choose one item if it is package two the user can choosetwo items. how do i go about.[/quote]In your database in the users table where you store all the info for registerd users put a field in called "accesslevel" depending on what package the user picks, this gets set to 1, 2, 3 and so on. When the user wants to pick an item you check against the "accesslevel" field in the database to see if they have permission.. Link to comment https://forums.phpfreaks.com/topic/5101-membership-level/#findComment-18084 Share on other sites More sharing options...
dirt Posted March 17, 2006 Author Share Posted March 17, 2006 thanks. Is there any snippets of any coding that might help me with the 'if' statement??really would be a great help.thanks again Link to comment https://forums.phpfreaks.com/topic/5101-membership-level/#findComment-18354 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.