Jump to content

Pireps By Hub


TAV1702

Recommended Posts

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.

Link to comment
Share on other sites

Guest lorathon


$hub = 'KLAX';  // Enter the desired hub here

$params = array('u.hub'= $hub);

$pireps = PIREPData::findPIREPS($params);

This should work. Not tested but should work.

Link to comment
Share on other sites

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. :D it has been so long since I used it I forgot what it looks like anymore.

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...