Forum Moderators: mack
If your new to web development then my thought is the easiest way to accomplish what you are wanting to do as long as you are on linux hosting is to setup a .htaccess file for the directory that contains the information you want to protect. Often times there should be an icon in the control panel of the website to set this up. The nice thing about this is the protection is server level so its pretty secure.
If you are on windows hosting then you may have to come up with a custom php program that can work with a database.