Taxonomy archive link from term id

you need a semicolon at the end of your last line of code:

echo $term_link;

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