Correct php syntax to add an image in wp functions.php

do use get_bloginfo() when working with strings;

example:

$capimg =  get_bloginfo('template_url').'/imagename.jpg';

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