Get child pages in get_pages function

There is a function get_page_children available for this purpose, have a look on the documentation and examples.

https://codex.wordpress.org/Function_Reference/get_page_children

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