Display X number of records
Summary
Display X number of recordsContent
We want to create a top 10 report and only display the top 10 in the report results. I thought I had a example script I used for a top 100 but it is not working for a different top 10 report. Attached is what I have so far. Any guidance is greatly appreciated.
Code Snippet
global $x;
global $i;
if ($rows[0][0]->val==$x)
{
$i=$i+1;
if($i>=10)
unset($rows[0]);
}
else
{
$x=$rows[0][0]->val;
$i=0;
}
Tagged:
0