The Arcive of vBulletin Modifications Site. |
|
Getting Poll Count Details »»
|
|||||||||||||||||||||||||
I'm trying to pull how many polls there are in each forum but I can't seem to get the query quite right. Can anyone please tell me what I am doing wrong?
PHP Code:
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
||||
|
||||
|
Thank you, sir.
That did the trick. Can I use this query to also get the total voters and votes, too?
|
|
#4
|
||||
|
||||
|
Total voters and votes per poll or per forum? And don't you mean only total votes, because # of voters = # of votes, unless you mean unique voters.
|
|
#5
|
||||
|
||||
|
Which would be the best way to go? Probably total unique voters per forum? And maybe the average votes per poll per forum?
|
|
#6
|
||||
|
||||
|
Those would require some more extensive queries. Please create a query first, and when you get stuck, then reply back.
|
|
#7
|
||||
|
||||
|
It can't be done with the above query with a JOIN or something?
|
|
#8
|
||||
|
||||
|
The average votes per poll per forum:
PHP Code:
|
|
#9
|
||||
|
||||
|
Ok, that works. The only problem is if you have a multiple choice poll in there the count is off for the voters.
|
|
#10
|
||||
|
||||
|
You'd have to go into pollvote for total unique voters per forum and for multiple choice polls.
|
![]() |
|
|