Could you guys show me how i can make jquery post request to a php script every 30 seconds ? The Php script is writing some data to mysql.
$.ajax(
{
type: 'POST',
url: './postIt.php',
data: {
title: 'test',
},
success: function (good)
{
//handle success
//alert(good)
},
failure: function (bad)
{
//handle any errors
//alert(bad)
}
});