How to implement conditional PHP in Footer

Figured it out, thanks 🙂

<?php if (is_page('contact') ) { ?>
<?php } else { ?>
placed script here
<?php } ?> 

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