Re: [PHP] How come this will echo No or nothing?

2002-07-14 Thread Matthew K. Gold
o: 'JJ Harrison' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, July 14, 2002 5:42 AM Subject: RE: [PHP] How come this will echo No or nothing? > I've come up with this before and solved it like this (guess it'll > work): > > if($row['plevel

RE: [PHP] How come this will echo No or nothing?

2002-07-14 Thread César Aracena
I've come up with this before and solved it like this (guess it'll work): if($row['plevel'] == '0'){ echo 'No'; } else if($row['plevel'] != '0'){ echo 'Yes'; } Notice the *ELSE IF* instead of a simple else statement. Try it. C. > -Original Message- > From: JJ Harrison [mailto:[EMAIL PR

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
d a simple question into a > > debigging process. (Which doesn't work too well for email.) > > > > Sorry I couldn't be of more help. > > =C= > > * > > * Cal Evans > > * The Virtual CIO > > * http://www.calevans.com > > * > > > >

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
s. (Which doesn't work too well for email.) > > > > Sorry I couldn't be of more help. > > =C= > > * > > * Cal Evans > > * The Virtual CIO > > * http://www.calevans.com > > * > > > > > > -Original Message-

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
be of more help. > =C= > * > * Cal Evans > * The Virtual CIO > * http://www.calevans.com > * > > > -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 11:26 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP]

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] How come this will echo No or nothing? The value of plevel is "0" according to var_dump. -- JJ H

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
l exists? > > =C= > > * > * Cal Evans > * The Virtual CIO > * http://www.calevans.com > * > > > -Original Message- > From: JJ Harrison [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 11:11 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] How come

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
this will echo No or nothing? I tried that. same result. Here is my (new) snippet: if($row['plevel'] == 0){ echo 'No'; } else { echo 'Yes'; } "Cal Evans" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECT

Re: [PHP] How come this will echo No or nothing?

2002-07-13 Thread JJ Harrison
I tried that. same result. Here is my (new) snippet: if($row['plevel'] == 0){ echo 'No'; } else { echo 'Yes'; } "Cal Evans" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > because $row['plevel'] is NEVER == '0' It is probably == 0 though. (note >

RE: [PHP] How come this will echo No or nothing?

2002-07-13 Thread Cal Evans
because $row['plevel'] is NEVER == '0' It is probably == 0 though. (note the missing quotes. ) :) HTH, =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, July 12, 2002 11:01 PM To: [EMAIL PROTECT