Re: I know this is not easy and I'm not stupid but...

From: Date: Thu, 09 Aug 2007 18:01:23 +0000
Subject: Re: I know this is not easy and I'm not stupid but...
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-260521@lists.php.net to get a copy of this message
Please include the list when replying. Phil Curry wrote:
Phil Curry wrote:
how can this be? This is not the first time I've run into a situation like this. What am I missing?
line 102    echo  ($userValues['afterDark']);             // outputs 1
line 103    if ( $userValues['afterDark'] == 0 ) {        // passes
Add a line at 102.5... var_dump($userValues['afterDark']); What type is that variable?
Don't have to do a dump, I know its a tinyint(1), not null, default 0
That would be the type in the database, not the type of that variable at that time. -Stut -- http://stut.net/

« previous php.general (#260521) next »