How to pass variable to functions.php?

I may be dramatically wrong, but I believe not: theme’s PHP files are executed after functions.php. Check the chart in this answer.

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