Jump to content

[SOLVED]How to get a field value


mseiwald

Recommended Posts

Hy guys,

i have added a new column to my airports table called "elevation" and as the name says it contains the airport elevation for all airports.

Now i am trying to have the elevation displayed on my flight briefing document for the departure and the arrival airport.

For some reason it won`t show up and I`m trying different codes for hours now....I`m not too good in database stuff.

It would be great if one of you could show me how to call that elevation field value inside the flight briefing.

thank you in advance ;)

Link to comment
Share on other sites

If you use something like

 $airport = OperationsData::getAirportInfo('ICAO'); 

then your field will be $airport->elevation;

You'll also want to update the addAirport and editAirport functions in /core/common/OperationsData.class.php to include your field.

  • Like 1
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...