Determine the category that an archive-page is for

the ID of the current category will be available in the cat query var:

get_query_var('cat');

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