Echo current custom post type

If you are within The Loop, try:

$post_type = get_post_type( $post->ID );
echo $post_type;

Does this work for you?

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