Featured Images link to post parent

You might use $_SERVER['HTTP_REFERER'] but take in mind that is not always sent so check for its existence and think about a fallback!

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