RE: [PHP] date comparison expressions
| From: | Rick Emery | Date: | Mon, 01 Apr 2002 20:24:46 +0000 |
| Subject: | RE: [PHP] date comparison expressions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-91018@lists.php.net to get a copy of this message | ||
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:RMCPEAK@jhuccp.org]
Sent: Monday, April 01, 2002 2:22 PM
To: php-general@lists.php.net
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