![]() |
Just a quick loop
PHP Code:
|
Maybe I'm missing something, but...
PHP Code:
|
Yep your missing the fact that totalvotes changes on each iteration of the loop. Therefore giving a changed and inaccurate percentage on each iteration. I was wondering if there was any way around it :)
|
Ah, that's why it pays to look through the code!
No, I'd say two loops for that one. |
2 loops, as $totalvots is only correct at teh end of the loop and you need that for the percentage.
|
All times are GMT. The time now is 04:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|