我正在使用 PHP 从我的 mysql 数据库中提取 mp3 文件位置,并希望将这些变量传递给我页面中的脚本。
我想知道如何从我的数据库中的数组中回显以下文件名:
var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
{
m4a: "downloads/uploads/p170f0vflo1066jbc1l4pp38st01.mp3",
}, {
cssSelectorAncestor: "#cp_container_1",
swfPath: "js",
wmode: "window"
});
所以我需要这样的东西:
var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
{
m4a: "<?php echo $music_p; ?>", <---This is what I need (from a database)
}, {
cssSelectorAncestor: "#cp_container_1",
swfPath: "js",
wmode: "window"
});