Re: Comparing dates.
| From: | Randy | Date: | Thu, 16 Nov 2000 22:50:00 +0000 |
| Subject: | Re: Comparing dates. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25805@lists.php.net to get a copy of this message | ||
Hello Mårten,
Here's one date comparison I use to find out if a date is more
than $delayhrs old.
$uquery=mysql_query("SELECT uid FROM tusers WHERE
DATE_ADD(regdate , INTERVAL $delayhrs HOUR) < NOW()");
That should give you a place to start.
Best regards,
Randy
Thursday, November 16, 2000, 11:48:14 AM, you wrote:
MA> I've got problem with comparing a stored date from SQL with the date
MA> function in PHP. Does anyone know how I should do to get it work?
MA> / Mårten martenba@hotmail.com
MA> _________________________________________________________________________
MA> Get Your Private, Free E-mail from MSN Hotmail at
MA> http://www.hotmail.com.
MA> Share information about yourself, create your own public profile at
MA> http://profiles.msn.com.