If tag equals then show else show

Look at has_tag(). It seems that is what you are looking for

You can use it like follow

if( has_tag( 'NAME OF TAG' ) ) {
    // do something if has tag
}else{
    // do something else if not have tag
}

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