How to return a Boolean for a page that is a subpage thru its name?

Consider that the child page is subpage_anything_1 to check if we are on that page we can use strpos to the requested URI

strpos($_SERVER['REQUEST_URI'],"subpage_anything_1");

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