I am getting an "error connecting to database" messsage. There was no error with the code until I switched to a new hosting server and database. I updated all of the database connect credentials and even tested them with a php database connect test script which worked just fine. Im new to PHP and don't really know how to go about fixing it. You can see the error at thepublicpitate.com/index2.php
Any help or assistance is very appreciated.