RE: [PHP] How to Compare dates?
| From: | scott [gts] | Date: | Thu, 02 Aug 2001 14:50:57 +0000 |
| Subject: | RE: [PHP] How to Compare dates? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60917@lists.php.net to get a copy of this message | ||
or, if the field is a MySQL DATE field, try comparing to
"0000-00-00", since that's what a blank date defaults to.
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:rasmus@php.net]
> Sent: Thursday, August 02, 2001 10:34 AM
> To: Jack Sasportas
> Cc: php
> Subject: Re: [PHP] How to Compare dates?
>
>
> > if ( ( mysql_result($db_result,$db_record,'order_date')=00000000000000)
>
> Uh, huh? Just try ==0 there. Not =00000000000
>
> -Rasmus
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>