If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > How to store selected songs ids in db

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-06, 06:02
mehran mehran is offline
Registered User
 
Join Date: Apr 2005
Posts: 203
Arrow How to store selected songs ids in db

Hi all i have a db for my music collection. It has one table with the following feilds on it:

Code:
ID|filename|artist|album|title|track|comments|genre|seconds|filesize|bitrate
I already created pages that with checkboxes that user select indvidual songs and by click of play button it goes and plays those songs for me.

Now i created another button next to play that it supposed to write the selected songs to db and save the ids of slected songs.Note: i use song ids to pull indvidual songs from db to be played by my song player!

My problem is i do not how to design a few tables that keep track of selected songs for each user along with the name of playlist for each user!! In processs i do not want to modify my current table i just want to add more tables to help me achive what i want. I be happy if an expert tell me how i can create tables that store play list(selected songs)info for each user and later i be able to query them easily in order to pull out playlist of each user.Thanks
Reply With Quote
  #2 (permalink)  
Old 02-18-06, 10:29
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
you may not want to modify you table design, but as laid out you have some significant design issues
for example what happens if one song appears on more tghan one album?
you have redundancy of data (eg storing album details and track details in the same record
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 10-19-08, 06:40
waqas1122 waqas1122 is offline
Registered User
 
Join Date: Oct 2008
Posts: 2
songs script

i would like to recommend you some pre made open source songs script . i don't create the tables and data base my self for songs . i simply download open source scripts and install them every things is fine in those scripts .
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On