Category Icon on custom post type

You can use the conditional with in_category.
http://codex.wordpress.org/Function_Reference/in_category

For example after your loop:

<?php if (in_category('type')) { ?>
                        <img src="https://wordpress.stackexchange.com/questions/15884/<?php echo get_stylesheet_directory_uri();?>/images/custom.gif" alt="" class="customicons"/>

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