'.$funivname.'

PhD Applied and Payment Statistics as on '.$ftime.'

'; echo $title; $table = ' '; $i = 1; $applied_count_ttl = 0; $form_a_count = 0; $form_b_count = 0; while($row = mysqli_fetch_array($result)) { $table .= ''; $i++; $applied_count_ttl += $row['applied_count']; $form_a_count += $row['form_a_count']; $form_b_count += $row['form_b_count']; } $table .=''; echo $table; ?>
Sl. No. Degree Code Degree Form A Applied Count Form B Applied Count Applied Count
'.$i.' '.$row['fdegree'].' '.$row['FDESCPN'].' '.$row['form_a_count'].' '.$row['form_b_count'].' '.$row['applied_count'].'
TOTAL '.$form_a_count.' '.$form_b_count.' '.$applied_count_ttl.'