setInterval(function() {
var send_id = 1; //Burada göndereceğin ID parametresi olacak.
$.ajax({
type: "POST",
url: "guncel.php",
data: {
id: send_id
},
dataType: 'json',
success: function(msg) {
$("#box").html(msg);
},
error: function(msg) {
console.log(msg);
}
});
}, 1000);