現在我有:DDBB結構,所以我可以管理播放列表 - 當前,上,下一個
Table playlist (id, name, id_user,many_items,last_item_used,...)
table playlist_map (id, id_user, id_item,position...)
我想知道,那將是對我來說足夠讓用戶添加/刪除播放列表中的項目,和負載播放列表中的上一個和下一個項目?
或者我應該改變我的計劃? (我有50%的PHP做了,仍然沒有問題,但我種有這種感覺..)提前
感謝:P
我已經做了播放列表插入/修改/刪除,現在我upt到:
class playlist_item{
protected $id;
protected $id_item;
protected $nombre;
protected $url;
protected $id_playlist;
protected $position;
function __construct($id) {
}
function get_what($what){
if($what == 'next'){
}else if($what == 'prev'){
}else if($what == 'last'){
}else if($what == 'first'){
}else if($what == 'current'){
}
}
}
通過編寫這個.... ehm ..順序在playlist_map,對嗎? – 2011-03-17 02:18:47