How to Create and Use a Connect File
In a text editor, create a file with the following code:
Be sure to change databasename, dbuser, and dbpassword to your specific info.
Save and upload to your server as connect.php.
Call the connect file in your script by adding the following at the beginning:
and update /path/to/your/connection/file/connect.php to point to your connect file.