J
|
Jane 7/11/2007 |
Travis, if ($values["ContactDate"]) { // split $values["ContactDate"] to array $arr = db2time($values["ContactDate"]); // construct time $t = mktime($arr[3],$arr[4],$arr[5],$arr[1],$arr[2],$arr[0]); // compare time with current time subtracted by 92 days if($t < time()-606024*92) $values["Contact Older Then Three Months"] = "1"; } |
D
|
darkmage0 author 7/12/2007 |
Hello |
J
|
Jane 7/13/2007 |
No. This code works on the Edit or Add pages only. |