[PHP] date comparison expressions

2002-04-01 Thread ROBERT MCPEAK

I'd like to compare today's date against a stored date, and then fire
some code based on the result.

Like.

if ($today's_date  stored_date+5 days)

then {blah}

Can somebody clue this newbie in on how to do this?

-Bob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] date comparison expressions

2002-04-01 Thread Rick Emery

Are you retrieving the stored date from a mySQL database?  If so, you can
let mysql SELECT only those records that fit the tardy date criteria.

-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 2:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date comparison expressions


I'd like to compare today's date against a stored date, and then fire
some code based on the result.

Like.

if ($today's_date  stored_date+5 days)

then {blah}

Can somebody clue this newbie in on how to do this?

-Bob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php