How to get variable from function.php to loop file

The easiest way is a global:

global $selective;
$selective = new WP_Query( $args_selective );

And then in your template part:

global $selective;

// Away we go!

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