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

2007-08-11 Thread Tijnema
or reporting including E_NOTICE, you don't see that there's some problem with your code :P If I execute your code with the -n option, I get same results. When I put them in a PHP file like this: I get : bool(false) bool(false) and you probably also ;) Tijnema > > > > >

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

2007-08-10 Thread Richard Lynch
On Thu, August 9, 2007 1:24 am, Phil Curry wrote: $userValues = ' 1'; > line 102 echo ($userValues['afterDark']); // outputs 1 > > line 103 if ( $userValues['afterDark'] == 0 ) {// passes When using echo to display debug output ALWAYS surround the data with some ki

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-10 Thread Zoltán Németh
> > Jan > > > > -----Original Message----- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Friday, August 10, 2007 1:47 AM > To: Jan Reiter > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] I know this is not easy and I'm not stup

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
rDark'] equals "" or "blah" or "1" Hope that helps! Jan -----Original Message- From: Phil Curry [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 2:49 AM To: Stut Cc: php-general Subject: Re: [PHP] I know this is not easy and I'm not stupid but...

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

2007-08-09 Thread Phil Curry
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 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] ==

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
fail!;-) So you have to use === to keep the types of the values! Jan -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 1:47 AM To: Jan Reiter Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] I know this is not easy and I'm not stupid bu

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

2007-08-09 Thread Jim Lucas
essage----- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 8:08 PM To: Stut Cc: Phil Curry; php-general Subject: Re: [PHP] I know this is not easy and I'm not stupid but... Stut wrote: Please include the list when replying. Phil Curry wrote: Phil C

RE: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jan Reiter
leak in this case! Must be something pretty obvious! Anyone a clue?? Thanks, Jan -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 8:08 PM To: Stut Cc: Phil Curry; php-general Subject: Re: [PHP] I know this is not easy and I'm not stupid b

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

2007-08-09 Thread Jim Lucas
Stut wrote: 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 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['after

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

2007-08-09 Thread Stut
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 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] == 0 )

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

2007-08-09 Thread Stut
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 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] == 0 ) {// passes Add a line at 102.5... var_dump($u

[PHP] I know this is not easy and I'm not stupid but...

2007-08-08 Thread Phil Curry
how can this be? This is not the first time I've run into a situation like this. What am I missing? line 102echo ($userValues['afterDark']); // outputs 1 line 103if ( $userValues['afterDark'] == 0 ) {// passes Thanks. -Phil -- PHP General Mailing List (h