ID of Front-Page

This should do the trick.

global $wp_query;
$post = $wp_query->get_queried_object();
$post->ID;

This’ll give you the ID for each page you’re on.

get_option( 'page_on_front' ) should’ve worked though.

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