The simply the best collection of playlist scripts
PHP sample code how to populate a jPlayer playlist from a MySQL database.
Create dynamic XSPF playlists based on ID3 tags in MP3 files. The zip package contains everything you need to get started. Move this folder out to your website root, and upload your MP3s.