Calling PHP Scripts in Ajax that are in PHP Snippets

PHP snippets intended for shortcode use aren’t going to work here (unless the plugin explicitly offers a solution, in which case ask them).

To properly use AJAX in WordPress you need to put the functions in your child theme’s functions.php file or a simple plugin. Then you need to either:

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