Jump to content

Probbaly Answered


Tim

Recommended Posts

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)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...