Display the contents of a custom field of a page on their child

$value = get_post_meta($post->post_parent,'your fields name',true);
if(!empty($value)){
    // display the value
    echo $value;
}

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