05132007 1136 GMT-6 DST

Start with something like this: 

$duedate = some date
Get the date that is five days before the date with either strtotime()
or mktime()

Then if the $duedate is 5 days out = font color equals red.
Sending the email is the same...
if the duedate is five days out = font color red, send mail.

Wade


On Sun, 2007-05-13 at 17:23 +0100, Mark Mckee wrote:
> Hi All
> 
>  
> 
> I need a little help. I am creating an internal site for work. Basically we
> will be adding names and info to a database that have to have certain things
> done before a certain date. Each date is different. I need a little help
> with a php script that will detect the date and change the font colour to
> red if the date is 5 days away or has passed completely. 
> 
>  
> 
> I would like to have an email sent to a certain person when it is 5 days
> before, then an email sent to multiple people if the date arrives and passes
> 
>  
> 
> Is this possible and could someone point me in the right direction to get
> started? 
> 
>  
> 
> Mark M.
> 
> 
> 
> [Non-text portions of this message have been removed]
> 
> 
> 
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
> 
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list 
> Yahoo! Groups Links
> 
> 
> 
> 

Reply via email to