Calling in Post Content via AJAX

Replace ????? with <?php echo $postID; ?>

I’m assuming your two snippets are in the same WP generated page?

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