var request = $.ajax({
url: "ajax.php",
type: "POST",
data: { myData },
dataType: "json",
// headers: {
// 'Content-Type': 'application/json',
// Accept: 'application/json'
// },
cache: false,
});
$data = $sth->fetchAll();
//var_dump($data);
//die();
echo json_encode($data);