Where would I place `wp_footer();`?

wp_footer() loads enqueued JS files, etc.

Place it just before the closing tag like in method B.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)