Tim Posted March 8, 2011 Report Share Posted March 8, 2011 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) Quote Link to comment Share on other sites More sharing options...
Tom Posted March 8, 2011 Report Share Posted March 8, 2011 <?php echo 'Your last 5 landings '.TouchdownStatsData::top_landings($userinfo->pilotid); ?> Would probably work - you shouldn't need the quotes. Quote Link to comment Share on other sites More sharing options...
Tim Posted March 9, 2011 Author Report Share Posted March 9, 2011 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.