<?php
if($blessingStats[0] == "Might" || $blessingStats[1] == "Might" || $blessingStats[2] == "Might" || $blessingStats[3] == "Might" || $blessingStats[4] == "Might"){
$level = mysql_fetch_assoc(mysql_query("SELECT * FROM affinity WHERE name='Might'"));
$equation = $level['level']/10;
$total = $charstr * $equation;
$stradd = "<font color=\'#0099FF\'>+ ".$total."</font>";
}
?>
As you can see above if you have a blessing == might, then it will divide the level to get a decimal and and multiply by the character stat in which it wants to increase to get a certain bonus.
But as you see, the if statement checks to see if any of the $blessingStats[0] are equal to might and if it is multiply $charstr by 1.1 for example. But the blessings will be able to stack so if they have Might in $blessingStats[0], and $blessingStats[1] then it should be 1.2, but the equation stays 1.1, now my question is how do I make it add up the field then multiply?