I'm using PHP, i want to play sound file when new record added to database but i need to play that sound only once. i try below code with click function & it works
<?php
if(isset($_REQUEST["action"]))
if($_REQUEST["action"] == "play")
{
?>
<embed src="Kalimba.mp3" autostart="true" loop="false" style="width:5px; height:2px;">
<?php
}
?>
When click on play link it start that mp3 file
<a href="sound.php?action=play">Play</a>