Hola.
I saw your other post about needing a json playlist, and can hopefully
clear both of your questions up for you. Basically, if you're going to
get an JSON playlist, you can go about it w/ $.ajax() or $.load() or
even $.getJSON(); anyone of those functions works. Personally, I used
$.ajax() because it reads the easiest, and allows for the most
customization.
In your other post, you're trying to play
http://sitename.com/index.php?songid=134
or whatever. idk if you can ever get that to work. you want you're PHP
to script to give you the JSON web address of the song. Like
http://sitename.com/song1.mp3.
PHP has a great function called json_encode() that will format your
song name and web urls into json. It was Im using in this project that
does exactly what you're talking bout.
http://www.huement.com/code/ajaxplayer2
Also, if you need a bit more help, I have a blog post at
www.huement.com/blog
with more info about using PHP w/ jplayer.
good luck!