Link to home
Start Free TrialLog in
Avatar of eiseng
eiseng

asked on

How to mark something by date and keep it marked if date has pasted?

I have this code to display a msg if the date is set.  But I need to have the script say completed even though the day has past.  Have it set up for reports so people can see if it is completed or not.  But It works if it is the current day but I need it to say completed after that date has pasted also.  But say Not Completed if the day has not pasted.  

Thanks
$d=date("Y/m/d");
if ($d=="2007/11/18")
  $msg = "<font color='green'>Completed</font>";
else
  $msg = "<font color='red'>Not Completed</font>";

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of steelseth12
steelseth12
Flag of Cyprus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eiseng
eiseng

ASKER

Awesome thank you very much.