changed the files to .php from .html. Can now connect to mysql database through local server.