Dynamic image displays depending on yes / no value
Dynamic image displays depending on yes / no value
I´d like to have a image showing, depending on a specific value (y/n)
..sorry need some help.
I can´t get it workin.....
<img <?php $status="n";
if ($status == "y") {
echo 'src="stecker_on.png" alt="yes"';
} else {
echo 'src="stecker_off.png" alt="no"';
} ?> height="71" width="101" />
The image ist not showing... ideas ?
All I get ist some text showing:
height="71" width="101" />
MANY THANKS !!!!
