I have the following database
Device | Status
--------------------
TV1 | off
TV2 | on
PC | on
Printer| off
... | ...
I need to generate an html table, using php, displaying ONLY the devices with status ON. The table rows must show the device name and a blinking_led.gif looking like this:
Device | Status
-----------------
TV2 | 'blinking_led.gif'
PC | 'blinking_led.gif'