Show content if page is a grandchild of top level page

Check how many ancestors the page has via get_post_ancestors:

// grandchild pages will have two or more ancestors
if( 2 <= count( get_post_ancestors( $post->ID ) ) ){
    echo 'grandchild page';
}

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