You defined your variables in app_config.
php, but connect.php doesn’t know this. You
need to tell your connection script that it
shouldn’t run until it loads app_config.php.
Then things will behave, because the variables
connect.php uses will be set properly.