Displaying only specific records matching a condition from a mysql database : <p>I have the following database</p>

<pre><code>   Device  |   Status
  --------------------  
     TV1   |    off
     TV2   |    on
     PC    |    on
    Printer|    off
    ...    |   ...
</code></pre>

<p>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:</p>

<pre><code> Device  |  Status
 -----------------
 TV2     |  'blinking_led.gif'
 PC      |  'blinking_led.gif'
</code></pre>
