hello
I have created a website where voters vote for their favourite website. I have used radiobox.
does anyone know how to count the votes in terms of percentage after the user has voted. The result should come up in a new webpage.
Also the website should not allow a voter to vote more than once. thank you all :cry: :cry: :cry: :cry:
sam1 0 Posting Whiz
Recommended Answers
Jump to Post— mikeSQL 5Is thesite running on PHP and MySQL? or does it at lesat run on some sort of Database so that once the button IE; the form, the info goes to the database and updates itself.
Then you can have a script to call it grabbing the info and showing up …
Jump to Post— demo 0Hi
This is very basic math
100 [%] * [each selection total votes] / [the total votes for all selections]
example
say you have 5 website in your poll
site 1 -> total votes = 10
site 2 -> total votes = 6
site 3 …
All 5 Replies
mikeSQL 5 Junior Poster
demo 0 Newbie Poster
sam1 0 Posting Whiz
demo 0 Newbie Poster
sam1 0 Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.