Hi everybody,
i make page which display all the record of the user in a table,i want to check if the time of the user login is great than 9:15 am the row background must be red,
if not the normal white sisplay,
i have the following script but not working fine
while ($rc = mysql_fetch_array($my))
{
//Display the data in HTML tables
// while ($re = mysql_fetch_array($rd)) {
?>
<tr <?php if(($rc['arrival_at']>='9:15 am')||($rc['arrival_at']>='09:15 am')){echo "style='font-weight:bold; background-color:red'";} else {echo "style='background-color:#DDDDDD'";} ?> >
<?php
echo "<td>" . $rc['user_name'] . "</td>";
// }
echo "<td>" . $rc['date'] . "</td>";
echo "<td>" . $rc['arrival_at'] . "</td>";
echo "<td>" . $rc['left_at'] . "</td>";
echo "<td >" . $rc['late_reason'] . "</td>";
echo "<td >" . $rc['system_ip'] . "</td>";
echo "</tr>";
}
it show the background red only for the 9 am not working for 10 am