# images for active /retired pilots

**URL:** <https://forum.phpvms.net/t/images-for-active-retired-pilots/2009>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [February 15, 2010, 6:44pm UTC](https://forum.phpvms.net/t/images-for-active-retired-pilots/2009 "2010-02-15T18:44:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 15, 2010, 6:44pm UTC](https://forum.phpvms.net/t/images-for-active-retired-pilots/2009/1 "2010-02-15T18:44:07Z")

</div>

Hi guys, sorry if this has already been covered off but what im trying to do is on the pilots list i have a column active/inactive with a gif image, what i want to do is have this updated to reflect the status of the pilot so if he is active its green and of he goes inactive or retired then this changes to red, is this possible and easily accomplished?

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [February 15, 2010, 9:32pm UTC](https://forum.phpvms.net/t/images-for-active-retired-pilots/2009/2 "2010-02-15T21:32:59Z")

</div>

Yeah, use $pilot-\>retired

If it’s 0, they’re active, 1 then retired

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 15, 2010, 9:41pm UTC](https://forum.phpvms.net/t/images-for-active-retired-pilots/2009/3 "2010-02-15T21:41:16Z")

</div>

Sorry Nabeel how would i put this in to show an image?

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [February 16, 2010, 12:48am UTC](https://forum.phpvms.net/t/images-for-active-retired-pilots/2009/4 "2010-02-16T00:48:28Z")

</div>

Maybe something like -\>

```
<?php
    If ($pilot->retired == 0)
          { echo '<img src="path to your image for active" />'; }
    else
          { echo '<img src="path to your image for retired" />'; }
?>

```

---

<div class="post-metadata">

**Author:** ![mark1million](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark1million/32/15_2.png) [@mark1million](https://forum.phpvms.net/u/mark1million)\
**Post date:** [February 16, 2010, 10:22am UTC](https://forum.phpvms.net/t/images-for-active-retired-pilots/2009/5 "2010-02-16T10:22:40Z")

</div>

You guys are excellent

Thanks i will give that a go.
