how to replace cell value with image if cell value equals x
<p>I have a table connected to my localhost. I am using an if statement to replace a value. What I want to do is show an image if user activity =login. Here is the code I am using in Php.</p>

<pre><code>echo "&lt;td&gt;" . $record['activity']  . "&lt;/td&gt;";
if ($record['activity']=='LOGIN') echo "&lt;img src='localhost/on.png' width='24' height='24'/&gt;";
</code></pre>
