How to create dynamic templates?

You can include the template like this include(locate_template('template-part.php'));. to pass the variable or used the outer variable/ dynamic values in the template.

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