Daniel Posted December 4, 2010 Report Share Posted December 4, 2010 hey guys, I wonder if someone could help me out with some code. Ok what I would like is if they are in a hub. e.g. EGLL it will display an image. or KLAX it would display another image. etc. Instead of text. You will see if you have a look at. http://www.pashairvirtual.co.uk/index.php/Listing Instead of the text. at the moment i am using this <td><center><strong><?php echo $pilot->hub?></strong></td></center></td> thanks alot Daniel Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted December 4, 2010 Administrators Report Share Posted December 4, 2010 Name your image the same as your hub icao would be easiest. <img src="<?php echo SITE_URL; ?>/path to your images/<?php echo $pilot->hub; ?>.jpg" alt="hub" /> So if a pilot is a member of the KJFK hub it will display the image named KJFK.jpg Quote Link to comment Share on other sites More sharing options...
Daniel Posted December 4, 2010 Author Report Share Posted December 4, 2010 thanks sim pilot! Quote Link to comment Share on other sites More sharing options...
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.