Here is the code. This is a sniped version of the full thing, for simplicities sake, which includes other locations.
<?
$naxx = 1;
$naxxramas = array(
array ('Anub\'Rekhan', '1'),
array ('Faerlina', '1'),
array ('Maexxna', '1'),
array ('Noth', '1'),
array ('Heigan', '1'),
array ('Loatheb', '1'),
array ('Razuvious', '1'),
array ('Gothik', '1'),
array ('Four Horsemen', '1'),
array ('Patchwerk', '1'),
array ('Grobbulus', '1'),
array ('Gluth', '1'),
array ('Thaddius', '1'),
array ('Sapphiron', '1'),
array ('Kel\'Thuzad', '1')
);
$total_naxx = count($naxxramas);
if ($naxx == 1){
echo '<b>Naxxramas</b><br>';
for ($i=0; $i < $total_naxx; $i++){
echo $naxxramas[$i]['0'].' - ';
if ($naxxramas[$i]['1'] == 1){
echo $dead;
}
else {
echo $alive;
}
echo '<br>';
}
}
else {
echo '<div '.$cz.'>Naxxramas</div>';
}
?>
Currently, I have $naxx toggling how it displays the information. Instead, I'd like it to be able to determine this on its own. If all the values of $naxxramas[$i]['1'] add up to the value of $total_naxx, it would then run the
echo '<div '.$cz.'>Naxxramas</div>';
Any help would be great, I've been scratching my head over this for a while.