# Total pireps shown

**URL:** <https://forum.phpvms.net/t/total-pireps-shown/2233>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [March 16, 2010, 9:50pm UTC](https://forum.phpvms.net/t/total-pireps-shown/2233 "2010-03-16T21:50:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [March 16, 2010, 9:50pm UTC](https://forum.phpvms.net/t/total-pireps-shown/2233/1 "2010-03-16T21:50:42Z")

</div>

Nabeel, is it possible to show the Past 30 days PIREPS on the stats page, the one shown in the admin section would be great, it it easy to bridge the gap between the admin to public pages?

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [March 17, 2010, 12:29pm UTC](https://forum.phpvms.net/t/total-pireps-shown/2233/2 "2010-03-17T12:29:42Z")

</div>

Something like

```
<?php
    $pireps = PIREPData::getIntervalDataByMonth('', '1');
    print_r($pireps);
?>

```

Will return the data for the last month. The first variable you can add some WHERE functions to if you want and the ‘1’ is the number of months.
