This involves a lot of things and someone just sending you the code for that isn't too realistic (if someone does though, great). It would be much better for you to attempt this and the community can help you when you run into problems. Just a basic overview of what topics this project encompasses:
- MySQL database (or other, but MySQL is a good place for new guys to start)
- PHP Sessions
- PHP database access
You will need to fill the database somehow, either manually or other? You'll need to give info on how you want that done.
You left out a lot of unknowns. Be as specific as possible and I'm sure we'll be glad to give you feedback on how to get started and give you appropriate sources or code as well.