Jump to content

Recent pilots - link only pilot ID


shiljo

Recommended Posts

Hi to all!

need some help...welll i would love to link only pilot ID not whole name in recent pilots.tpl , and my code is :

<?php
foreach($pilots as $pilot)
{
?>
<p><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' - ' .$pilot->firstname . ' ' . $pilot->lastname; ?></a><img src="<?php echo Countries::getCountryImage($pilot->location);?>" align="right" alt="<?php echo Countries::getCountryName($pilot->location);?>" width="16" height="11" /><br /></p>
<?php
}
?>

So anyone can help me...i tried to mess up with codes here, but cant figure it out...well im trying and learning ;) Thank you very much

Shiljo

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