Call to undefined function get_blog_option()

I think that function is only available in multisite mode. Try:

if(is_multisite()){
  $path = get_blog_option($blog_id,'siteurl');
}else{
  $path = get_option('siteurl');`
}

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