Jump to content

Recommended Posts

  • Moderators
Posted

Hi, im trying to list on the pilots page the last date that a pilot flew, i have been playing with the

<?php echo PilotData::GetFieldValue($pilot->pilotid, '*********'); ?> but not sure if that can work. Any sugestions please.

Thanks

     

  • Administrators
Posted

try this

<?php
$report = PIREPData::GetLastReports($pilot->pilotid, 1);
echo date('d.M.Y', strtotime($report->submitdate));
?>

But since you're using the beta, you can do now:

<?php
echo date('d.M.Y', strtotime($pilot->lastpirep));
?>

I thought it made sense to just automatically log that.

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.

×
×
  • Create New...