How to add modified php in child theme?

Just add a functions.php in your child theme folder and put your code in it.

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