If I use PHP code like:
for ($i = 1; $i <= 24; $i++)
{
$timetable=strftime("%X", mktime(0, 0, $hour[$i], $month, $day, $year));
}
to get timetable for current day that looks like:
time |
----------
05:09:23 |
----------
07:23:18 |
----------
11:55:41 |
----------
14:01:32 |
----------
I want to highlight cell where the printed time include the current time (if the current time is 9:23:00 highlight cell will be the one with the printed time 07:23:18 and if the current time is 13:59:06 highlight cell will be 11:55:41)
How can I do that?
Use this to do it:
Now
$thisIDgives you the required row. Use it to highlight the row.