Display custom meta box in my template file

Figured it out, in part thanks to The Sufi’s comment. I had:

<?php get_post_meta( get_the_ID(), 'textfield', true); ?>

Should have been

<?php echo get_post_meta( get_the_ID(), 'textfield', true); ?>

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