How can i count the vote of the voters, i used dropdown tool to choose a candidate, and my database in MS SQL SERVER 2008... please help my in my project....

Recommended Answers

Hi

Can you elaborate?

What code do you have for selecting a voter? How is your database structured to assigner voters against a particular vote?

Without further information, the best I could offer would be to use a COUNT query that utilises a WHERE Candidate=SelectedCandidate.

Jump to Post

All 2 Replies

Hi

Can you elaborate?

What code do you have for selecting a voter? How is your database structured to assigner voters against a particular vote?

Without further information, the best I could offer would be to use a COUNT query that utilises a WHERE Candidate=SelectedCandidate.

This will depend on how you insert your vote into database, mean the structure.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.