How to include code into functions.php file via a plugin

You can directly create a plugin. Just copy all your codes and put it in a new folder. Plugin will call all the functions.

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