
nmsinc
User
Oct 11, 2011, 10:36 AM
Post #1 of 3
(1959 views)
Shortcut
|
|
Code for A date Greater Than
|
Can't Post
|
|
I need to code a section for background color based on if the $updateDate is greater than 24 hours older than the current date. I'm trying the code below with no success - any ideas? <?php $today = time(); $startdate = strtotime($claims_submissionRecord['updatedDate']) + mktime(0,0,0,date("m"),date("d")+1,date("Y")); ?> <?php if ($today) > ($startdate) ?> <td align="center" bgcolor="#777777" width="130"> <?php else: ?> <td align="center" bgcolor="<?php echo $bgColor ?>" width="130"> <?php endif /> Thanks nmsinc
|