Problem with using get_template_part() in footer

It looks like the code in contactform.php may be causing issues.

These lines, specifically:

global $wp;
wp_redirect(home_url($wp->request));
exit;

The exit statement may be stopping execution of the rest of the script. If you want to process form data, you should be checking for it and processing it instead of just running the redirect and exit statements whenever the part is included.

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