Display Slug instead of Name

From your code, it looks like product_cat is a custom taxonomy. get_the_terms returns an array you can get the slug from. For instance…

$terms_array = get_the_terms($post->ID, 'procuct_cat');
$term_slug = $terms_array['your index']->slug;

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