php notification when a new entry with sound
<p>i want make a real time notification with jquery and play sound first play when a new entry added , but my script the audio play repeated </p>

<p>front end : </p>

<pre><code>&lt;script&gt;
    setInterval(
    function()
    {
    $('#orderjum').load('refresh/jumlahorder.php');}, 1000);

    &lt;/script&gt;
</code></pre>

<p>backend :</p>

<pre><code>&lt;?
require("../../include/koneksi.php");
$sql = "Select * FROM pemesanan";
$result = mysqli_query($konek,$sql) or die(mysqli_error($konek));
$num_rows = mysqli_num_rows($result);

echo "&lt;h3&gt;$num_rows&lt;/h3&gt;
&lt;p&gt;Total Orders&lt;/p&gt; &lt;audio controls autoplay hidden='true'&gt;
&lt;source src='http://www.w3schools.com/html/horse.ogg' type='audio/ogg'&gt;
&lt;/audio&gt;";exit;
?&gt;
</code></pre>