AJAX: WordPress filters inside $html do not work as intended

the_permalink and the_title (by default) echo their value, and therefore can’t be used in assignment. Use get_permalink, and the_title( '', '', false ).

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