title: php mysql login system with different user levels
body: <p>I already have an existing login system using php and mysql using sessions. I think i do not need to post the code here.</p>
  
  <p>i want to add a user level feature to it, wherein it limits the pages that can be viewed by a registered user depending on his access level. Example user level 1 can can access pages 1-5 only, and user level 2 can access pages 1-10, and so on.</p>
  
  <p>i addedd a userlevel column on my members table. and i do not know what is the next step.</p>
  
  <p>what particular function / code can be used to set the user level restrictions on the pages?</p>
  
  <p>i tried searching out for examples in the web but can't find any good one.</p>
  
  <p>please help</p>