Jump to content

[SOLVED] How to include <a href>


suma237

Recommended Posts

hai,

 

the output of this code is  "track1.mp3track2.mp3track3.mp3",i want to include <a href> for each music file

and on the click of each music file the song have to play.

<?
$dir = "song";
$dh = opendir($dir) or die ("could not open dir");
while ( !(($file = readdir($dh)) === false) ){
if ($file == "." || $file == "..") continue;
if (eregi(".mp3",$file)){
echo $sheets[] .= $file;
}
}
?>

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/60918-solved-how-to-include/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.