Easier URL to an image

This should do the job:

<img src="https://wordpress.stackexchange.com/questions/129493/<?php echo get_template_directory_uri(); ?>/images/logo.png">

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