Moderators mark1million Posted July 26, 2010 Moderators Report Share Posted July 26, 2010 Hey guys i am using a bit of code to bring back all pireps for the logged in user, $flights = PIREPData::findPIREPS($userinfo->pilotid); Which works great, i need to put a limit on what is fetched say 20 or something and im having trouble getting the right code. Any help would be appreciated. Thanks. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 26, 2010 Administrators Report Share Posted July 26, 2010 Try -> PIREPData::getLastReports($userinfo->pilotid, '10') Change the 10 to how many you want returned. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted July 26, 2010 Author Moderators Report Share Posted July 26, 2010 Thank you, thank you and thank you :-) 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.