stuartpb Posted June 2, 2011 Report Posted June 2, 2011 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. Quote
michael Kraan Posted July 13, 2012 Report Posted July 13, 2012 Where is output.php located at? Yes where? does anyone know that? Michael Kraan 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.