WordPress theme ajax have_posts()

The issue here is that you haven’t queried any posts. Before have_posts try adding something like, query_posts( 'posts_per_page=5' );

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