Is it possible to use get_post_meta() to control HTML?

You can call get_post_meta inside of a conditional statement and display data depending on the field value (empty or set), check the sample loop in the Codex

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