anyway to put inside a $outprint=sprintf()

You can use do_shortcode() in sprintf() like any other value:

$output = sprintf( '<div>%s</div>', do_shortcode( '[shortcode]' ) );

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