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
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
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
> > *
> >
> >
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-
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]
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
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
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
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
>
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
10 matches
Mail list logo