View Single Post
  #2 (permalink)  
Old Nov 19th, 2006, 18:58
atlaskid atlaskid is offline
Junior Member
Join Date: Jul 2006
Location: UK
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Login Script Problem

If your an absolute beginner at PHP, this is too far.

You could have a 'permission' field in your DB, values 0-3 (Guest, User, Mod, admin)

Pages then would be like:

Code: Select all
if ($permission > 1){
                                //  Content that only mods and admins can see
                               }
else{
        echo "You do not have the authority to view this section";
       }
You can manipulate that yourself. But again, if your very new to php and have just downloaded a script this is too far. Try a shoutbox to get started
Reply With Quote