Integrating CSS Into a WP Function Call [closed]

Apart from the fact, that the conditional is based on a WordPress option, this is pure PHP, but anyhoo:

<?php
    $show_views = get_option( 'to_post_views' );

    if ( 'Yes' === $show_views ) {
        echo '<div class="postviews">' .
            getPostViews( get_the_ID() ) .
            '</div>';
    }
?>

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