What’s the purpose of $wp_did_header?

It’s a global variable that can be checked by user functions and filters to see whether or not WordPress has already sent headers. It’s just there to help.

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