gio1961 Posted July 9, 2019 Report Posted July 9, 2019 (edited) Hi guys, I have this code but the flag is not displayed. Any help is welcome. Thank you <?php $country = OperationsData::getAirportInfo($route->depicao); $imgicao = array_search($country->country, Countries::$countries); ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strtolower($imgicao);?>.png" alt="<?php echo strtolower($imgicao);?>" /> <a href="<?php echo SITE_URL?>/index.php/airports/get_airport?icao=<?php echo $route->depicao ?>" target="_blank"><?php echo $route->depicao;?></a> (<?php echo $route->deptime; ?>) </strong> example image Edited July 10, 2019 by gio1961 Quote
LeonardIGO4036 Posted July 11, 2019 Report Posted July 11, 2019 Do you have the country image files located in the lib folder? Try to test it, open the image on a new tab maybe. If the images don't exist, download the original copy of phpVMS, it'll have the images If the image exists and is not loading, then there is some other issue. Regards Quote
gio1961 Posted July 11, 2019 Author Report Posted July 11, 2019 (edited) 57 minutes ago, LeonardIGO4036 said: Do you have the country image files located in the lib folder? Try to test it, open the image on a new tab maybe. If the images don't exist, download the original copy of phpVMS, it'll have the images If the image exists and is not loading, then there is some other issue. Regards Thank you for answering .The images are there, otherwise you will not see them on the other pages of my test site. Edited July 11, 2019 by gio1961 Quote
Members Vangelis Posted July 13, 2019 Members Report Posted July 13, 2019 can you provide a link of a working and a non working page ? Quote
gio1961 Posted July 14, 2019 Author Report Posted July 14, 2019 (edited) thanks to Vangelis resolve: <?php $country = OperationsData::getAirportInfo($route->depicao); ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strtolower ($country->country);?>.png" width="24" /> Edited July 14, 2019 by gio1961 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.