I need to execute include(file.php) which echo some data every time I press the button. Tried to call it from ajax
$.ajax({
type: 'get',
url: 'link/file.php',
data: {
'update': 1
},
});`
But it doesn't update (only on page refresh). Can I somehow update this php echo every time I recieve get request or press the button? Thank you!
Aucun commentaire:
Enregistrer un commentaire