Heya, guys. I'm trying to make a vote system. It's very simple working like this :
Someone selects either 1 star, 2 stars, 3 stars, 4 stars or 5 stars to vote. The vote is posted away. Problem now is that I cannot add the vote to the sum variable I have in the database.
This code isn't working very well :
if (($_POST['newvote']) == 1) {
$vote1 = $vote1 + 1;
}
Etc etc till 5.
What should I do instead? It shouldn't be that much of a complicated problem. :bemused:
Thanks,
Kris.