Hi,

I'm pretty new to PHP and MySQL - still, I want to make a login for my homepage.

Can anyone help me?

The database has to store username, password, a unique ID# and a type (admin or user).
Now, when a user logs in, the user can see more data about himself (I think I can figure this out myself).

I need to use sessions and a cookie for "remember-me"-service and a logout. Also a logout when the browser closes.

I know it sounds stupid and I have searched for code snippets and tutors, but no luck. But I'm a n00b at PHP :P