WordPress child pages not working

According to the codex, get_post_permalink applies to custom post types. I don’t think you are using a custom post type, right?

Instead, try get_page_link( $page->ID )

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