How to output different content of page on different places in my template

How to output different content of page on different places in my template

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