Load php file with jquery in single.php

Have a look at wp_localize_script(), which is exactly the right core function for your needs.
A short explanation on the usage can be found in this answer to the question “Pass PHP variable to javascript”.

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