WordPress subfolder installation AJAX Problem

Use plugin_dir_url to get the URL of your plugin’s directory.

$ajax_url = plugin_dir_url( __FILE__ ) . 'save_contribution.php'

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