# TouchdownStats module

**URL:** <https://forum.phpvms.net/t/touchdownstats-module/12734>\
**Category:** Simpilot Group Addons\
**Created:** [November 8, 2018, 2:57pm UTC](https://forum.phpvms.net/t/touchdownstats-module/12734 "2018-11-08T14:57:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sayedzaafir](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/5e9695/32.png) [@sayedzaafir](https://forum.phpvms.net/u/sayedzaafir)\
**Post date:** [November 8, 2018, 2:57pm UTC](https://forum.phpvms.net/t/touchdownstats-module/12734/1 "2018-11-08T14:57:10Z")

</div>

hi&nbsp;

&nbsp;

i have installed it but i get this error any idea to fix it thank you&nbsp;

```
Warning: Invalid argument supplied for foreach() in /home/gulfairv/icrew.gulfair-va.com/core/templates/touchdownstats/touchdownstats_index.php on line 21

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![gio1961](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/g/ea666f/32.png) [@gio1961](https://forum.phpvms.net/u/gio1961)\
**Post date:** [November 9, 2018, 10:25am UTC](https://forum.phpvms.net/t/touchdownstats-module/12734/2 "2018-11-09T10:25:42Z")

</div>

Hi, try to see if it works. Greetings

foreach($stats as $stat)

to

if($stats)  
foreach($stats as $stat)

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![sayedzaafir](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/5e9695/32.png) [@sayedzaafir](https://forum.phpvms.net/u/sayedzaafir)\
**Post date:** [November 16, 2018, 1:44pm UTC](https://forum.phpvms.net/t/touchdownstats-module/12734/3 "2018-11-16T13:44:15Z")

</div>

thank you it worked&nbsp;

---

<div class="post-metadata">

**Author:** ![LionHo](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@LionHo](https://forum.phpvms.net/u/LionHo)\
**Post date:** [April 16, 2019, 5:56pm UTC](https://forum.phpvms.net/t/touchdownstats-module/12734/4 "2019-04-16T17:56:39Z")

</div>

Hi…you can use these inside of one of your templates to bring back the data you want and display it as you wish. An example to fill a variable with data for use in your template you can use $this-\>set-\>(‘stats’, TouchdownStatsData::get\_stats(‘10’)); in your module to pass the data to the template within the $stats variable. Then in your template use the $stats variable to do what you wish with the display.

[pcb assemblies](https://www.7pcb.com/PCB-Assembly-Service.php)
