How can I append blog_id to … echo [functions-defined-constant]?

You can access the blog ID you are on by global $blog_id; and then you can use that how you want it to work.

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