Moderators mark1million Posted February 15, 2010 Moderators Report Share Posted February 15, 2010 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? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 15, 2010 Administrators Report Share Posted February 15, 2010 Yeah, use $pilot->retired If it's 0, they're active, 1 then retired Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 15, 2010 Author Moderators Report Share Posted February 15, 2010 Sorry Nabeel how would i put this in to show an image? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 16, 2010 Administrators Report Share Posted February 16, 2010 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" />'; } ?> Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 16, 2010 Author Moderators Report Share Posted February 16, 2010 You guys are excellent Thanks i will give that a go. 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.