This is really annoying! What i need is some sort of script (at first I wanted it to be in php but to be honest, now, I couldn't give a monkey's what language it's in) which allows me to let visitors to my site to rate a certain item out of 10.
Thats the first bit, which Im sure someone can help me with! Please?
Then, a simple addition to that is a snippet which then averages all the votes so far and prints out the average.
Then, the tricky addition is to somehow extract the top 5 or top 10 rated things so far.
If anyone can help me in writing the first part, second part or even third part to this I would be eternally greatful.
I know this is asking a lot, but Ive tried to break it down into manageable chunks, like my mother always told me to!
I've tried looking at hotscripts and other code resources, but no joy. PLEASE, anyone?
Thanks in advance!!
Seems like if you took a look at some of the subs from scripts available from cgi-resources:
and
that you could make some headway with. That is, if you're going to do it 'manstyle' and make this a late night project.
Between the two types (voting & topsites) I'm sure that looking at a combination of scripts offered would get you what you need for setup and subroutine ideas, once you had a data record that was consistent for logging the ratings.
Idiotgirl