in reply to MySQL Database

You might get a big helping hand by using one of the various application servers out there (like OpenInteract, OpenFrame, HTML::Mason). With OpenInteract, the authentication stuff is already built-in, as is interaction with the database and a rich templating environment for creating applications fairly quickly. But such systems might also be overkill if you've got a fairly simple task ahead of you.

Chris
M-x auto-bs-mode