WordPress live search and filter custom fields

The 500 error means your ajax url is not working.
Try using an external js file and wp_localize_script

More info in the codex.

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