php - Highlighting row with same date AND almost same time
I have a mysql table with four colums:
date, time, ip, user
When loading the results I get something like this:
03-21 17:10:33 123.456.789.101 TestUser 03-21 17:12:31 123.456.789.101 TestUser 03-25 17:16:33 123.456.789.101 TestUser
I want to highlight (give a diff. text color) the rows with the same date AND time if within a 2min range, like the first two rows in my example.
How to do that?