Hm... What is it you are actually asking here? How to login, or how to give different contents to different users?
In very short:
Create a table with username, password and security level.
Have people enter their username/password in a form, submit the form, and search the table for that user/pass combination. if login is succesfull, store a variable stating loging succesfull in their session & add the security level. THen when loading pages, you can check for security level, and load specific parts of the website, based on the secerity level they have (Guest, user, administrator, ..)
J.