Dynamic Connections implementation
Originally created server settings in DW Manage Sites. Decided to create a Dynamic Connection using the wizard. Updated the include file on one page, but getting multiple errors.
What is the proper procedure for pointing to the new file? Tried naming it the same thing, and also editing the include file, but major errors result either way.
Should I keep the old connection file also, or should it be deleted?
Should the server settings in DW Manage Sites be deleted?
How do you test the additional connections in the Wizard?
How does this work with all the pages that are already uploaded to a remote server?
Both the new and old connection files are attached.
Below are some of the errors:
Notice: Undefined variable: database_ProductsDb in /Applications/MAMP/htdocs/website.com/Prod_results.php on line 101
Notice: Undefined variable: ProductsDb in /Applications/MAMP/htdocs/website.com/Prod_results.php on line 101
Warning: mysql_select_db() expects parameter 2 to be resource, null given in /Applications/MAMP/htdocs/website.com/Prod_results.php on line 101
Notice: Undefined variable: ProductsDb in /Applications/MAMP/htdocs/website.com/Prod_results.php on line 105
Warning: mysql_query() expects parameter 2 to be resource, null given in /Applications/MAMP/htdocs/website.com/Prod_results.php on line 105
In addition, I'm also getting a 'headers not sent' error that I wasn't getting before (only on localhost):
Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/website.com/Connections/ProductsDb.php:9) in /Applications/MAMP/htdocs/website.com/Prod_results.php on line 211