Hello,
Thanks for the question about hiding the database login. As a rule, we do not provide coding support for website development. There are various ways to do things, and standards for methods often change. We recommend speaking with a developer or website designer. We do have a Web Design service if you prefer to have someone else create your website. This being said, in my experience, database login (login information), is not typically placed in the code for reasons of security. We often see it in a configuration file such as "config.php". Here is a link to a third-party forum that discusses the issue.
I hope this helps to answer your question, please let us know if you require any further assistance.
Regards,
Arnel C.