Retrieve and play mp3 files from mySQL using Javascript/PHP
问题 I am building a site that stores a few mp3 audio files in mySQL. At the moment only 5, so efficiency is not an issue at all. CUrrently, I am still trying to make a cross browser/platform solution that will not require other file formats. I have a PHP script that retrieves the mp3 binary data and sends the appropriate header to the browser. The files can then be retrieved by specifying the src of the audio element (whether it be audio or embed, or other) as follows: src="retrieve_audio.php