Well, that is really an open-ended question. Do you want help with PHP, MySQL, HTML or security login’s?
For a starter, I have one site up similar to what you want to do. My site works like this:
HTML - Login page for userID and password, this page accepts inputs and “posts” to the PHP page.
(has a form on it with a few options such as userID, password, New-Registration and Guest)
login.php - a small PHP page with looks up their userID and password in the MySQL database to see
if they are allowed it. Or, optionally, sends then to a guest page that talks about becoming a member,
0r, optionally, sends them to a registration page. (Which enters their new data in the database.)
Home.php - A home page for registered members that lets them go to any other page they wish such
as a purchase page or blog page, whatever…
Several-Other.php - Many other PHP pages all with various sections of the site.
*** To secure the site from others, I use SESSION variables. When a member logs in and is validated as allowed to be on the site, I set a session variable called $_SESSION[‘UserID’] to their member UserID.
Then, on EVERY page of the live site, the first code is checking to see if that variable is empty or filled by a user id. If empty they are redirected to a page that says they are not allowed in that area, but can be by becoming a register member and giving them the option to do so.
It works very well this way. When someone closes the browser, the session is closed and the variable is gone. If someone notices over someone shoulder the actual URL of the products page and types it into their browser, it will not allow them to see it. Nice!
Well, hope that is what you are looking for. Good luck and let us know the next question…
( LOL, there are always more… )