title: CSS/PHP: Change font color based on value retrieve from MySQL
body: <p>I have some problem with my code. Currently, I have a column in the database called "Book_status". there are 3 conditions which are Pending, Approved and Reject.</p>
  
  <p>I want the font to change its color at PHP based on that condition.
  For example, Pending will change the font to Yellow, Approved to Green and Reject to Red.</p>
  
  <p>Below is my current PHP code:</p>
  
  <pre><code>echo "&lt;tr&gt;";
          echo "&lt;td&gt;" . $row['id'] . "&lt;/td&gt;";
          echo "&lt;td&gt;" . $row['Requested_by'] . "&lt;/td&gt;";                                              
          echo "&lt;td&gt;" . $row['Fac_ID'] . "&lt;/td&gt;";
          echo "&lt;td&gt;" . $row['Room_Desc'] . "&lt;/td&gt;";
          echo "&lt;td&gt;" . $row['Meeting_Description'] . "&lt;/td&gt;";    
          echo "&lt;td&gt;" . $row['Book_Status'] . " &lt;/td&gt;";      
          echo "&lt;td&gt;&lt;a type='button' class='btn btn-primary btn sm'href='view.php?id=". $row['id'] ."' title='Edit Booking' data-toggle='tooltip'&gt;View&lt;/a&gt;&lt;/td&gt;";
  echo "&lt;/tr&gt;";
  </code></pre>