Ajaxing in functions.php

Try to replace $(document).ready(function() { with jQuery(document).ready(function($) {
It should work for you.

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