on loop the image file name is changing but audio file name is not changing so each time button play same audio while image is diffrent, i stored 52 images and sounds with 1,2,3, (.jpg and .mp3) file name in folder, with following code images are showing correctly but sound is repeating same one (only 1.mp3)
[php]<?php
$pth1=“voice/alifbepati/”;
$pth=“images/ipapati/”;
for ($x = 1; $x <= 52; $x++) {
echo $pth1.$x.".mp3";
global $filenm;
$filenm= $pth1.$x.".mp3";
echo “<img src=”$pth".$x.".jpg" width=75 height=75>
<audio id=“player” src=’$filenm’>
"; } ?>[/php]