title: Color table row by status
body: <p>I wanna do <code>if</code> in   by my status field.
  if my status is "blocked" so the font background color will be in red and if the status is "authorized" so in green.</p>
  
  <p>how should i do that?</p>
  
  <pre><code>    foreach($data as $row)
     {
      $output .= '
      &lt;tr&gt;
  
       &lt;td&gt;'.$row-&gt;client_name.'&lt;/td&gt;
       &lt;td&gt;'.$row-&gt;adrress.'&lt;/td&gt;
       &lt;td&gt;'.$row-&gt;occupation.'&lt;/td&gt;
       &lt;td&gt;'.$row-&gt;payeee.'&lt;/td&gt; 
       &lt;td&gt;'.$row-&gt;status.'&lt;/td&gt; 
  
  
      &lt;/tr&gt;
      ';
     }
  </code></pre>