Music Player

I am going to make a flash music player. I need it to be able to read variables from the PHP file that it’s placed in. Example variables include: path to the MP3, length of the song, etc… These variables are stored in a MySQL database, not in XML files.

So how do I do this? Can you point me to a good tutorial?