Jump to content

Recent Pilots - #SOLVED#


Fernando

Recommended Posts

  • Moderators

This should be what you are looking for

<?php
if(!$pilots)
{
echo '<p>No pilots has joined us!</p>';
return;
}
?>
<table>
<thead>
<tr>
<th>Pilot ID</th>
<th>Pilot Name</th>
<th>Join Date</th>
</tr>
</thead>
<tbody>
<?php
foreach($pilots as $pilot)
{
?>
<tr>
<td align="center"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid);?></a></td>
<td align="center"><?php echo $pilot->firstname . ' ' . $pilot->lastname; ?></td>
   <td align="center"><?php echo date("m.d.y", $pilot->joindate);?></td>
</tr>
<?php
}
?>
</tbody>
</table>

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