How can I execute shortcode outside the loop?

do_shortcode should do the trick. I don’t think you need the ‘echo’ before it though, I have never done so myself and never had any problems.

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