PDA

View Full Version : Poll results


odonel
02-06-2007, 06:30 PM
Ok guys, how do i get the option with the highest vote in a poll. say i have,

option A 78%
optoon B 45%
option C 60%

i'd like to get optionA in a variable, how do i do that ?

got it.. for those who may need this, use the sort poll hack, i forgot who wrote it and arsort($splitvotes); and echo $splitoptions[0]; will return the top result