title: Color coding html table cell based on SQL flag value
body: <p>So I finally have a SQL query working to take 3 conditions from my DB table and set a flag based on them. </p>
  
  <p>Here is the Statement:</p>
  
  <pre><code>UPDATE staging 
  SET  `miuFlag` =1 
  WHERE  `lowSideMIUNumArriv` =    `lowSideMIUNumDepart` 
  AND  `miu` =  "No"
  </code></pre>
  
  <p>Now my database table has a column called 'miuFlag' with either ones or zeroes. Based on this value, I want one of my html table values to be red or green (0=red, 1=green).</p>
  
  <p>Here is the affected html table row:</p>
  
  <pre><code>        &lt;td&gt;&lt;? echo $row['miu'];?&gt;&amp;nbsp;&lt;/td&gt;
  </code></pre>
  
  <p>I know I can color this row's font by using style inside of the td element, but how exactly would I create the condition to style one color for miuFlag = 0 and another for miuFlag = 1?</p>