RE: [PHP] How to Compare dates?

From: Date: Thu, 02 Aug 2001 14:37:58 +0000
Subject: RE: [PHP] How to Compare dates?
Groups: php.general 
Request: Send a blank email to php-general+get-60912@lists.php.net to get a copy of this message
> Can someone tell me how to properly compare the value > returned from the > db to see if it is blank ? > if ( ( > mysql_result($db_result,$db_record,'order_date')=00000000000000) > ) ) { Two things, Jack. Enclose 00000000000000 in quotes, since it is a string, but more importantly, use '==' instead of '=' for comparison. I hate it when I do that :) Kirk

« previous php.general (#60912) next »