Jump to content

Last flight date


mark1million

Recommended Posts

  • Moderators

OK so i was about to post for help but some coffee and logical thinking i have this working, it might not be the right way but its working lol:)

<?php

if($pilot->lastpirep  == 0)
{
       echo 'No flight';
}
else
{
$report = PIREPData::GetLastReports($pilot->pilotid, 1);

echo date('d.M.Y', strtotime($report->submitdate));
}

?>


  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • Moderators

OK so i was about to post for help but some coffee and logical thinking i have this working, it might not be the right way but its working lol:)

<?php

if($pilot->lastpirep  == 0)
{
       echo 'No flight';
}
else
{
$report = PIREPData::GetLastReports($pilot->pilotid, 1);

echo date('d.M.Y', strtotime($report->submitdate));
}

?>


good job Mark

i give you a small pad on the back tongue.gif

laugh.gif

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