Members: 94 (+82 Alts)
* Average Level: 29
* Level 70: 0
* Level 60-69: 4
* Level 50-59: 18
* Level 40-49: 9
* Level 30-39: 23
* Level 20-29: 24
* Level 10-19: 28
* Level 2-9: 33
* Level 1: 37
What you sent me was perfect...
Now I tried to get it to do that now...
level 1 alone and 2-9 on one line
those totals are wrong, it should be
* Level 2-9: 30
* Level 1: 7
this is what i have done to the areas you sent me before...please inform of what is wrong..
- Code: Select all
$num_lvl_70 = 0;
$num_lvl_60_69 = 0;
$num_lvl_50_59 = 0;
$num_lvl_40_49 = 0;
$num_lvl_30_39 = 0;
$num_lvl_20_29 = 0;
$num_lvl_10_19 = 0;
$num_lvl_2_9 = 0;
$num_lvl_0_1 = 0;
- Code: Select all
switch ($row['levelgroup'])
{
case 8:
$num_lvl_70 += $row['amount'];
break;
case 7:
$num_lvl_60_69 += $row['amount'];
break;
case 6:
$num_lvl_50_59 += $row['amount'];
break;
case 5:
$num_lvl_40_49 += $row['amount'];
break;
case 4:
$num_lvl_30_39 += $row['amount'];
break;
case 3:
$num_lvl_20_29 += $row['amount'];
break;
case 2:
$num_lvl_10_19 += $row['amount'];
break;
case 1:
$num_lvl_2_9 += $row['amount'];
break;
case 0:
$num_lvl_0_1 += $row['amount'];
break;
default:
}
$level_sum += $row['sum'];
- Code: Select all
<ul>
<li style="color:#999999;">Average Level: '.round($result_avg).'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 70: '.$num_lvl_70.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 60-69: '.$num_lvl_60_69.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 50-59: '.$num_lvl_50_59.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 40-49: '.$num_lvl_40_49.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 30-39: '.$num_lvl_30_39.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 20-29: '.$num_lvl_20_29.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 10-19: '.$num_lvl_10_19.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 2-9: '.$num_lvl_2_9.'</li>
<li>'.$wordings[$roster_conf['roster_lang']]['level'].' 1: '.$num_lvl_0_1.'</li>
</ul></td>';
the sections that have _0_1...I tried with _1_1 same result.