TAV1702 Posted October 6, 2011 Report Share Posted October 6, 2011 Is there any way at all to show pireps by certain hub only? I have been tossing around some code and got a few things to work but not this one. I have been at it for a few hours now. I keep getting it to pull pireps that have been filed, but it is giving it to me for all hubs, not just the one I would like it to show. Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted October 7, 2011 Report Share Posted October 7, 2011 $hub = 'KLAX'; // Enter the desired hub here $params = array('u.hub'= $hub); $pireps = PIREPData::findPIREPS($params); This should work. Not tested but should work. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted October 7, 2011 Author Report Share Posted October 7, 2011 Ill give that a try. All I am really looking to do is basically take and have it display like the deafult one on the front page where it shows flight number, DEP and Arr and who flew it.... I think thats how the original was displayed. it has been so long since I used it I forgot what it looks like anymore. Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted October 7, 2011 Report Share Posted October 7, 2011 If you want just one PIREP then change the last line to the following $pireps = PIREPData::findPIREPS($params, 1); 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.