Displaying the type of post (Custom) in a single.php

Already figured it out:

<?php $post_type = get_post_type_object( get_post_type($post->ID) );?>
<h3><?php echo $post_type->label ?></h3>

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