In this script down it keeps updating the div and showing a counter
WhatIwantedisthatifthereisanychangeinthenumber,playingaSound"An Alarm" only I have no knowledge of javascript if someone can help me will help me a lot
counter_mapa.php
$sql1 = "SELECT COUNT(*) AS total1 FROM agenda_saidas where id_transfer1 = '1' ";
$resultado1 = mysql_query($sql1) or die ("Erro na consulta1");
$linha1 = mysql_fetch_assoc($resultado1);
$cancel_solicitado = $linha1['total1'];
List.php
<div id="latestData"></div>
<script src="http://code.jquery.com/jquery-latest.js"></script><script>$(function(){functiongetContadorMapa(){$.get("includes/principal/contador_mapa.php", function (result) {
$('#latestData').html(result);
});
}
getContadorMapa();
setInterval(getContadorMapa, 20000);
});
</script>