Start Small, Add Small, Finish Small
You may be wondering why you couldn’t have just started
with app_config.php, and the completed, working version of
connect.php. Or, at a minimum, you could have just dropped
all the database connection code into connect.php at once,
and then done the printing code all at once. Isn’t that how
real developers write code?