hi.
i worked on php,mysql,jquery,ajax last ten years.
i can do your job short time so what do you want?.
i can do you job with e few methods.
methot one.
select name,z_bal_date,z_bal,if(date_sub(NOW(),interval 2 HOUR)>z_bal_date,1,2) as decision from goip.auto_ussd where z_bal_date >date_sub(NOW(),interval 1 DAY);
if ($row['decision] == 0)
$tr_backcolour = "color_code";
else
$tr_backcolour = "color_code";
methot two.
simple php code.
if $row['z_bal_date]>date_format(time()-7200,'Y-m-d')
$tr_backcolour = "color_code";
else
$tr_backcolour = "color_code";
......etc.
i can do your job.