Conditional statement checking two conditions for CPT and Custom Taxonomy [closed]

Yes because your code has syntax error. It should be this.

if ( is_singular('my_cpt') && ( has_term( 'myterm', 'mytaxonomy', $post->ID ) ) ) {

}

Did you notice if condition should close just after is_singular('my_cpt').

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