How to filter custom post data with AJAX?

I see that your problem has somthing in common with error in the topic: How to filter post data with AJAX on page?
You can read and find a solution for your case.

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