Lijn 11=lijn 1038
Bedankt Jan
if (count($subtotaals)>0) {
$tabel .= '<tfoot><tr>';
for($i=0;$i<count($subtotaals);$i++) {
$b=$subtotaals[$i];
$tabel .= '<td>';
for($a=0;$a<count($subtotaals);$a++) {
$txt='';
$k=$subtotaals[$a][0];
foreach($k as $c) {
switch (strtoupper($c)) {
if ($c != '') {
case 'AVG':
$txt = $aggregates['SUM'] / count($data);
break;
case 'COUNT':
$txt = count($data);
break;
case 'UNIQUE':
$unique = $aggregates['UNIQUE'];
$unique = array_unique($unique);
$txt = count($unique);
break;
case 'DISTINCT':
$DISTINCT = $aggregates['DISTINCT'];
$txt = count($DISTINCT);
break;
case 'MAX':
$txt = max($aggregates['MAX']);
break;
case 'MIN':
$txt = min($aggregates['MIN']);
break;
case 'SUM':
$txt = $aggregates['SUM'];
break;
}
$tabel .= '<div>' . $k . ': ' . $txt . '</div>';
}
}
}
$tabel .= '</td>';
}
$tabel .= '</tr>
</tfoot>';
}Parse error: syntax error, unexpected token "if", expecting "case" or "default" or "}" in line 1038