title: How to add css class of new records in the table html, data is stored in Mysql?
body: <p>Title is not entirely clear what is required if more detail is:
  In mysql db table has, from it to the page of data is displayed in html table this code:</p>
  
  <pre><code>&lt;?php            
     $db_host = 'localhost';         
     $db_name = 'DB';         
     $db_username = 'NAME';         
     $db_password = 'PASS';       
     $db_table_to_show = 'TABLE';         
     $connect_to_db = mysql_connect($db_host, $db_username, $db_password) 
     or die("Could not connect: " . mysql_error());           
     mysql_select_db($db_name, $connect_to_db)      
     or die("Could not select DB: " . mysql_error());   
     mysql_set_charset("utf8");          
     $qr_result = mysql_query("select * from " . $db_table_to_show)      
     or die(mysql_error());            
     echo '&lt;table id="table"&gt;';       
     echo '&lt;thead&gt;';         
     echo '&lt;tr&gt;';
     echo '&lt;th class="table-fandom"&gt;fandom&lt;/th&gt;';        
     echo '&lt;th&gt;author&lt;/th&gt;';     
     echo '&lt;th class="table-name"&gt;name&lt;/th&gt;';
     echo '&lt;th&gt;size&lt;/th&gt;';    
     echo '&lt;th class="table-status"&gt;status&lt;/th&gt;';             
     echo '&lt;th&gt;date&lt;/th&gt;';       
     echo '&lt;th&gt;tags&lt;/th&gt;';
     echo '&lt;/tr&gt;';       
     echo '&lt;/thead&gt;';        
     echo '&lt;tbody&gt;';         
  
     while($data = mysql_fetch_array($qr_result)){       
         echo '&lt;tr&gt;';
         echo '&lt;td&gt;' . $data['fandom'] . '&lt;/td&gt;';    
         echo '&lt;td&gt;' . $data['author'] . '&lt;/td&gt;';         
         echo '&lt;td&gt;&lt;a href="/goto/' . $data['url'] . '" target="_blank"&gt;' . $data['name'] . '&lt;/a&gt;&lt;div class="menu" style="display: none;"&gt;&lt;br&gt; '                                             . $data['annotation'] .  '  &lt;/div&gt;&lt;/td&gt;';       
         echo '&lt;td&gt;' . $data['size'] . '&lt;/td&gt;';  
         echo '&lt;td&gt;' . $data['status'] . '&lt;/td&gt;';        
         echo '&lt;td&gt;' . $data['date'] . '&lt;/td&gt;';  
         echo '&lt;td&gt;' . $data['tags'] . '&lt;/td&gt;';                  
         echo '&lt;/tr&gt;';       
     }       
  
     echo '&lt;/tbody&gt;';        
     echo '&lt;/table&gt;';         
     mysql_close($connect_to_db);        
    ?&gt;
  </code></pre>
  
  <p>Requires that the new records that were added today, has been assigned a special css class within 72 hours.
  PS Sorry for my english, it's not my native language.</p>