![](../../assets/img/logsbig.PNG)
HCT USER PERFORMANCE BETWEEN AND
SERVICE DATE |
SERVICE PROVIDER |
AGE GORUP |
GENDER |
SCHOOLING |
|
|
10 - 14 |
15 - 19 |
20 - 24 |
Above 24 |
TOTAL |
FEMALE |
MALE |
TOTAL |
IS-SCH |
OUT-SCH |
TOTAL |
prepare("SELECT DATECREATED, USERINITIAL,
sum( if( AGE_GROUP = '10-14', RECORDCOUNTER, 0 ) ) AS aa,
sum( if( AGE_GROUP = '15-19', RECORDCOUNTER, 0 ) ) AS bb,
sum( if( AGE_GROUP = '20-24', RECORDCOUNTER, 0 ) ) AS cc,
sum( if( AGE_GROUP = '24', RECORDCOUNTER, 0 ) ) AS dd,
sum( if( SEX = 'FEMALE', RECORDCOUNTER, 0 ) ) AS FEMALEA,
sum( if( SEX = 'MALE', RECORDCOUNTER, 0 ) ) AS MALEA,
sum( if( SCHOOLING = 'IS', RECORDCOUNTER, 0 ) ) AS insc,
sum( if( SCHOOLING = 'OS', RECORDCOUNTER, 0 ) ) AS ossc
FROM hct_counselling_andtesting
WHERE DATECREATED BETWEEN :a AND :b GROUP BY DATECREATED,USERINITIAL ASC ");
$result->bindParam(':a', $d1);
$result->bindParam(':b', $d2);
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
TOTAL |
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE
DATECREATED BETWEEN :a AND :b AND AGE_GROUP = '10-14'");
$results->bindParam(':a', $d1);
$results->bindParam(':b', $d2);
$results->execute();
for($i=0; $rows = $results->fetch(); $i++){
$dsdsd=$rows['sum(RECORDCOUNTER)'];
echo formatMoney($dsdsd, true);
}
?> |
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE
DATECREATED BETWEEN :c AND :d AND AGE_GROUP = '15-19'");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE
DATECREATED BETWEEN :c AND :d AND AGE_GROUP = '20-24'");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE
DATECREATED BETWEEN :c AND :d AND AGE_GROUP = '24'");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE DATECREATED BETWEEN :c AND :d ");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE SEX = 'FEMALE'
AND DATECREATED BETWEEN :c AND :d ");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE SEX = 'MALE'
AND DATECREATED BETWEEN :c AND :d ");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE DATECREATED BETWEEN :c AND :d ");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE SCHOOLING = 'IS' AND DATECREATED BETWEEN :c AND :d");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE SCHOOLING = 'OS' AND DATECREATED BETWEEN :c AND :d");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|
prepare("SELECT sum(RECORDCOUNTER) FROM hct_counselling_andtesting WHERE DATECREATED BETWEEN :c AND :d");
$resultia->bindParam(':c', $d1);
$resultia->bindParam(':d', $d2);
$resultia->execute();
for($i=0; $cxz = $resultia->fetch(); $i++){
$zxc=$cxz['sum(RECORDCOUNTER)'];
echo formatMoney($zxc, true);
}
?>
|