PHP files Loads Image & Audio Player but mp3 file will not play

I am new to PHP language and I need some help. The hyperlink loads the image and audio player on new page but I cannot figure out why the audio file will not play.
Here is some background information. The website is bilingual (English & Spanish) which means one side of the website is written in English only and the other side of the website is written in Spanish only. The script is written to show the correct language and play the correct mp3 audio file (English or Spanish) according to the language of the site a person is visiting. The script uses a MYSQL database to accomplish this task for the hyperlink (includes text and a date) which means if a person is on the Spanish side of the website the hyperlink appears in Spanish and same goes for English side of the website. Each week, I load two new mp3 files (English & Spanish) and link them to the Spanish or English text with a date in the database. Not sure why the audio file will not play. there are two php files (wmb & play). wmb.php file works great since the hyperlink references the correct image and audio file but I suspect that the play.php has issues with the mp3 file. The root directory for the play.php file is in “modules/music/” and the mp3 audio files (55-0117_ENG.mp3 & 55-0117_SPN.mp3) are found in the root directory of “dashboard/files/wmb/” while the wmb.php file is located in “modules/home/” The image (wmbvog.jpg) is found in the root directory of “images/pictures”
Need help please understanding why the mp3 file does not play.

wmb.php file

<?php $query = " SELECT * FROM wmb WHERE lang='$lang' ORDER BY id DESC "; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); echo "".$lang_wmb7.$row['date'].""; echo '
'; ?>

Play.php file

<?php $image = $_GET['wmbvog.jpg']; //ie image of an specific author $song = $_GET['link']; // ie somesong.mp3 echo '
href='dashboard/files/wmb/".$row['link']."' '; ?>

The hyperlink on the new page reads as follows:
modules/music/play.php?song=55-0117_ENG.mp3&image=

The image and audio player loads correctly and it has selected the correct audio file (55-0117_ENG.mp3) but the player is not playing the audio file on the new page.

Sponsor our Newsletter | Privacy Policy | Terms of Service