how to display page title only for child category pages

Add a check wherever you’re displaying the title:

//Anything greater than 0 means the category has parents, 0 means no parent, child category
if($category->category_parent > 0){
    echo $category[0]->cat_name;
}

This should help.

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