I know your spelling this out for me but I'm still not getting it right:
With your reply I changed it to this:
Code:
// Calculating how many percent of the goal were met:
$have = 10;
$target = 100000;
$percentage = ( $have / $target) * 100;
$percentageToTwoDecimalPlaces = round($percentage, 2);
then further down the page I changed it to this:
Code:
<div class="donations">
<?php $percentageToTwoDecimalPlaces?>% done
</div>
the orinal was this:
Code:
// Calculating how many percent of the goal were met:
$percent = round(min(100000*($sum/$goal),100000));
and then:
Code:
iv class="donations">
<?php echo $percent?>% done
</div>
Can I not just change the sums in the $percent = round(min(100000*($sum/$goal),100000)); part?
Bookmarks