Sadly, numbers turn my brain into mush. I love coding, but my brain stops when I get into calculations. 🙂
Anyways, I am having people vote on their favorite 5 songs of 2006. The data is put into the following database fields:
database:votes
id, vote1, vote2, vote3, vote4, vote5, email
I also have a song database, with the following fields:
database::songs
id, artist, song
The song id (from the songs database) is put into vote1-5 (from the votes database)
So, when voting is over, how do I dynamically calculate the votes per song?? Where do I start to decide how to do this?
Thanks in advance!!
Medt