How to redirect user to the specific URL and display notice

How to redirect user to the specific URL and display notice

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