database user, and database name is ALWAYS prefixed with your cpanel username, like cpanelname_dbname and cpanelname_dbuser, so judging by that snippet you have the user wrong. I will assume that is not your actual password, if it is you should change it immediately.
Ps it would make more sense to call the last variable $database as you would be connecting to the actual database, not a table in a database
One more thing, you would need to add the user to the database and give it required privileges if you haven't already, this is done in cPanel under "mysql databases"