How do I read the value of a custom field of the page?

Use the get_post_meta function.

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