How to get the current page Title and Page URL in footer.php

You should get the title by get_the_title:

$page_title = esc_html( get_the_title() );

and the link by get_permalink:

$page_link = esc_url( get_permalink() );

… and perhaps use google đŸ˜‰

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