Moderators mark1million Posted July 26, 2010 Moderators Report 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
Administrators simpilot Posted July 26, 2010 Administrators Report Posted July 26, 2010 Try -> PIREPData::getLastReports($userinfo->pilotid, '10') Change the 10 to how many you want returned. Quote
Moderators mark1million Posted July 26, 2010 Author Moderators Report Posted July 26, 2010 Thank you, thank you and thank you :-) Quote
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.