reference the current category being used in the category.php page

Try using get_queried_object():

$term = get_queried_object();
echo $term->name;

If you get nothing there, try this:

print_r($wp_query);

Everything you need is in the $wp_query global.

Hope this helps you.

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