Jump to content

Help with Airline Image On Map(SOLVED)


flyalaska

Recommended Posts

I have tried about everything to show the image of the airline on the live map. I am able to show the image on the Departures and arrivals, just not the live map.

The currant code

<img src="<?php echo fileurl('/images/airline/'.$code.'png'); ?>" alt="<?php echo $airline->name;?>" />

This is what it is putting out

http://www.flyaka.com/images/airline/png

I

Link to comment
Share on other sites

You seem to be missing a dot before the extension:

<img src="<?php echo fileurl('/images/airline/'.$code.'.png'); ?>" alt="<?php echo $airline->name;?>" />

With regards to the value of $code, print it out and see what happens

Jon

Still no go

http://www.flyaka.com/images/airline/.png

@Vangelis what exactly do you mean? I really have no clue what I am doing here.

Link to comment
Share on other sites

  • Members

You can try and write for example

echo "This is the  $code";

and if something comes up on your website then the $code is returning a variable

But my question is how do you get the $code like with an sql query is it a result of a function or something else

i think you still have me on skype if not you are free to add me and contact me

best regards

Link to comment
Share on other sites

The Problem is mentioned here

http://forum.phpvms...._20#entry111854

code in Variable in livemap gives you for example VLI454 not the VLI alone so you have to work with substring but more in the linked post above

That is inair image. I am not having that problem. I am trying to display the Airline logo in the table.

acars_table.png

Link to comment
Share on other sites

  • Members

I know it is already solved i just write the answer for the rest if they have the same question

you should put

<img src="<?php echo SITE_URL; ?>/images/airline/<?php echo $pirep->code; ?>.png"><br />

as <%=flight.code%> is a java script variable and we need a php variable to get the pilot's airline code

  • Like 1
Link to comment
Share on other sites

  • 4 years later...

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