where to split off footer.php

It’s a personal choice. If the containing markup is consistent across all templates it doesn’t matter if they’re in the template or header/footer, it’s just one less bit of markup that gets repeated in every template.

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