![]() |
If $male has total of males and $female total of females:
Code:
$percentMale = round(($male / ($male+$female) * 100), 1); |
Strange, I get:
Unsupported operand types in <path>.... when I add that query. |
Works fine for me... that's just PHP code, shouldn't go in any query. :)
|
Ah, figured it out. I had to change it to the following to work with what I had done:
Code:
$percentFemale = round(($female[total] / ($male[total]+$female[total]) * 100), 1); Thanks again for taking the time to help me. |
No probs. :)
|
All times are GMT. The time now is 09:10 AM. |
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:
|