Jump to content

Rank


smokey68

Recommended Posts

  • 4 months later...

This is the way you test a variable:

Activate the variable on the page where you need to use it from another module:

<?php echo $leg = SchedulesData::getScheduleByFlight($flightAirlineCode, $flightAirlineCode2 ); ?>

($leg can be anything you want it to be, just used as an example.)

Then put this at the bottom of the page and you will see the coded calls to use with $leg:

<h3><?php echo var_dump($leg);?></h3>

Once all the variables apear you would use it like this:

<?php echo $leg->distremaining; ?>

(any of the variables you want to use.)

The code to show the pilots rank image is --

<?php
$pilot = PilotData::getPilotData($flight->pilotid);
?>
<img src="<?php echo $pilot->rankimage?>" style="height: 20px;" title="<?php echo $pilot->rank;?>"alt="<?php echo $pilot->rank;?>" />

:rolleyes:

Edited by warpennys
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...