Displaying only the current category in template page

Use the following code:

<?php
if (have_posts()):
    while (have_posts()):
        the_post();
?>


<h5><a href="https://wordpress.stackexchange.com/questions/85120/<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
<?php
        if ($content != 'no') {
            the_excerpt();
        }
    endwhile;
endif;
?>

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