Jump to content

Recommended Posts

Posted

Hi, i been trying to make my own pilot center but it looks like this i know there is something missing but cant work it out

Capturepilot.PNG

Here is the code i am using what am i missing ?

<p><?php echo $title?></p>

<?php

if(!$allpilots)

{

echo 'There are no pilots!';

return;

}

?>

<table border="1">

<tr>

<th>Pilot ID</th>

<th>Name</th>

<th>Hours</th>

<th>Flights</th>

<th>Rank</th>

</tr>

<tr>

<td width="14%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">

<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a></td>

<td><?php echo $pilot->firstname.' '.$pilot->lastname?>

</td>

<td><center><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></center></td>

<td><center><?php echo $pilot->totalflights?></center></td>

<td><center><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></center></td>

</table>

Any help would be great

Nathan

Posted

Hi, i been trying to make my own pilot center but it looks like this i know there is something missing but cant work it out

Capturepilot.PNG

Here is the code i am using what am i missing ?

<p><?php echo $title?></p>

<?php

if(!$allpilots)

{

echo 'There are no pilots!';

return;

}

?>

<table border="1">

<tr>

<th>Pilot ID</th>

<th>Name</th>

<th>Hours</th>

<th>Flights</th>

<th>Rank</th>

</tr>

<tr>

<td width="14%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">

<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a></td>

<td><?php echo $pilot->firstname.' '.$pilot->lastname?>

</td>

<td><center><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></center></td>

<td><center><?php echo $pilot->totalflights?></center></td>

<td><center><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></center></td>

</table>

Any help would be great

Nathan

In this part:

<td><center><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></center></td>

you need to edit the src. So instead of just having <?php echo $pilot->rankimage?>, you need to add something like:"http://www.yourwebsi...ur-rank-images/<?php echo $pilot->rankimage?>"

eg:

<td><center><img src="http://www.yourwebsite.com/path-to-your-images/<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></center></td>[/size][size="2"]

obviously change http://www.yourwebsi...ur-rank-images/ to the location of your rank images.

Posted

Thanks but still not working i changed the code to this

<p><?php echo $title?></p>

<?php

if(!$allpilots)

{

echo 'There are no pilots!';

return;

}

?>

<table border="1">

<tr>

<th>Pilot ID</th>

<th>Name</th>

<th>Hours</th>

<th>Flights</th>

<th>Rank</th>

</tr>

<tr>

<td width="14%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">

<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a></td>

<td><?php echo $pilot->firstname.' '.$pilot->lastname?>

</td>

<td><center><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></center></td>

<td><center><?php echo $pilot->totalflights?></center></td>

<td><center><img src="http://www.royles.eu/lib/images/ranks/<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></center></td>

</table>

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