Secure Site Help?

Ok, this is probably wrong place but I didnt know where to put it, ok so heres the problem!

I need to have a sub-domain area (http://ci.woprid.com) only accesible by people who enter correct username and password in a MySQL database, but the problem is I need all files ready for tomorow and I need a free one, later on in year I will hand code one to suit all my needs but for now I need a quick one.

THe reason I said PHP and MySQL was because I think its easier unless anyone would recoomend something else??