> Means I have to create a questionnaire, add one page with PHP code
and I will see the result in preview view?
Not automatically. You will have to put some statistic()-lines on that new page in the new questionnaire, and use html() to display the stats:
> How will be my PHP code?
Let's say, this is your code in the quota-check:
$casesAge = statistic('count', 'SD03_01', $ageGroup);
$casesGender = statistic('count', 'SD03_02', $gender);
Now, you have 3 age groups (1-3) and 2 gender groups (1-2), then your quota-view-PHP may look like this:
foreach ($ageGroup in [1,2,3]) {
html('<p>Age group '.$ageGroup.' = '.statistic('count', 'SD03_01', $ageGroup).'</p>');
}
foreach ($gender in [1,2]) {
html('<p>Gender '.$gender.' = '.statistic('count', 'SD03_02', $gender ).'</p>');
}