
Make sure the connection information is correct for your live database... you can add this code before the error after line 23:
<?php
var_dump($localhost);
die();
?>
That will tell you if the connection is working.

Ray, I tried you suggestion and received the following: stage 1... stage 2...object(mysqli)#1 (19) { ["affected_rows"]=> NULL ["client_info"]=> NULL ["client_version"]=> int(50542) ["connect_errno"]=> int(1045) ["connect_error"]=> string(95) "Access denied for user 'dreamweaver@tenniscare.com'@'box279.bluehost.com' (using password: YES)" ["errno"]=> NULL ["error"]=> NULL ["error_list"]=> NULL ["field_count"]=> NULL ["host_info"]=> NULL ["info"]=> NULL ["insert_id"]=> NULL ["server_info"]=> NULL ["server_version"]=> NULL ["stat"]=> NULL ["sqlstate"]=> NULL ["protocol_version"]=> NULL ["thread_id"]=> NULL ["warning_count"]=> NULL }
I'm very confused on "Access denied for user 'dreamweaver@tenniscare.com' error. I looked at one of my recordsets and it looks like Webassist may have generated an additional connection since I didn't set it up (see attached images of primary & additional connections). It's very odd that I can do a query directly to the database on my home page and am able to access the database with no problems (not using WebAssist). The MySQL Server Name of fp.tenniscare, User name of dreamweaver@tenniscare.com are wrong. If I delete the additional connection it still does not work with the primary connection. I know my user name, password and database name are correct!