Value prints outside of the echo

This is how I would code this:

$url = get_post_meta( get_the_ID(), 'mblink', true );
if ( ! empty( $url ) ) {
    print '<a href="' . esc_url( $url ) . '">MBLINK</a>';
}

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