Some problems calling a function into sprintf() inside functions.php template file [closed]

There is no specifier in your sprintf, so it won’t output anything. Try:

sprintf('Views: %d', get_PostViews(get_the_ID())),

You may have to use %s instead, it depends what your get_PostViews function is returning.

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