function getDB(postId){
$.ajax({
type: "POST",
url:'index.php',
data: {
"id": postId
}
});
<?php $postGet=$_POST['id']; ?>
console.log('<?php $postGet ?>');