# Probbaly Answered

**URL:** <https://forum.phpvms.net/t/probbaly-answered/4254>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [March 8, 2011, 10:48pm UTC](https://forum.phpvms.net/t/probbaly-answered/4254 "2011-03-08T22:48:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/ce73a5/32.png) [@Tim](https://forum.phpvms.net/u/Tim)\
**Post date:** [March 8, 2011, 10:48pm UTC](https://forum.phpvms.net/t/probbaly-answered/4254/1 "2011-03-08T22:48:42Z")

</div>

Working on the TD Stats .. I am trying to get a top 5 per pilot to show on his/her profile page ..

I tried going through the TD stats post already but was getting confused with the back and forth posts lol

Here is my code (without the slashes) ..

/// \<?php echo ‘Your last 5 landings ‘.TouchdownStatsData::top\_landings(’$userinfo-\>pilotid’); ?\> ///

Not sure why, but it doesn’t work (shows no data and breaks template) .. it works if i use an ‘average’ landing but not last 5

As a side note, every other stat i pull works fine .. this one confuses me

(Yes i have the tpl set to pull 5 )

Please help and sorry for a possibly already asked question)

---

<div class="post-metadata">

**Author:** ![Tom](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@Tom](https://forum.phpvms.net/u/Tom)\
**Post date:** [March 8, 2011, 10:56pm UTC](https://forum.phpvms.net/t/probbaly-answered/4254/2 "2011-03-08T22:56:04Z")

</div>

```
<?php echo 'Your last 5 landings '.TouchdownStatsData::top_landings($userinfo->pilotid); ?>

```

Would probably work - you shouldn’t need the quotes.

---

<div class="post-metadata">

**Author:** ![Tim](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/ce73a5/32.png) [@Tim](https://forum.phpvms.net/u/Tim)\
**Post date:** [March 9, 2011, 4:31am UTC](https://forum.phpvms.net/t/probbaly-answered/4254/3 "2011-03-09T04:31:52Z")

</div>

Yes I missed the quotes, bur still no joy

Is it possibly a tpl error? I’m sure this coding (to grab and show the data) is right

I’m open to all suggestions at this point (I know its simple i just cant see it)

EDIT –\> what is really throwing me off is the fact that the whole tpl gets broken .. blank data i can fix .. but this is weird
