> -Original Message-
> From: Miroslav Figlar [mailto:[EMAIL PROTECTED]]
> Sent: 31 May 2002 07:26
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] nested if parse error
>
>
> anyway it's funny that this works fine :-)
> if (1):
> if
> > could somebody explain me please what is wrong with this
> > piece of code?
> > > if (1):
> > if (1) echo "hello";
> > else:
> > endif;
> > ?>
>
> Well, first off you've broken the golden rule, which is: Don't mix the
:-type syntax with the {}-type or completely bare synt
> -Original Message-
> From: Miroslav Figlar [mailto:[EMAIL PROTECTED]]
> Sent: 30 May 2002 13:05
> To: [EMAIL PROTECTED]
> Subject: [PHP] nested if parse error
>
>
> could somebody explain me please what is wrong with this
> piece of code?
> if (1):
> if (1) echo "hello";
>
I think coding without the use of brackets and line seperation will drive
you mad!
A working copy of your code:
This in my humble op is so much neater and you can debug this in a second.
if (1){
if (1) {
echo "Hello";
}
} else {
}
- James
-
if (1){
if (1) {echo "hello";}
} else { }
?>
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-Original Message-
From: Miroslav Figlar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 7:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] nes
5 matches
Mail list logo