LandingStats - Slight Modification

I love the landing rate (landingstats) feature that SimPilot & Nabeel brought to phpVMS. I have always had a little niggle with it though, and that was the fact that if a pilot didn’t use an ACARS program which records the land rate, or they file a PIREP manually, then the output shows 0. This can be confusing for visitors to your site.

So with a slight mod to the output php, any PIREPS submitted without the landing rate present will now show “Not Recorded”. You could use whatever text you want. Here’s how:

<?php if($pirep->landingrate == '0') {echo 'Not recorded';} else {echo "{$pirep->landingrate} ft/min"; }?>

I just dropped this in a table cell on my PIREP view page:

I think it makes more sense to visitors, than 0.

That’s a good idea.

Good catch

Where is output.php located at?

Very good idea

regards,

Cor

1 Like

Where is output.php located at?

Yes where? does anyone know that?

Michael Kraan