Re: Disturbing parsing problems
| From: | Analysis & Solutions | Date: | Mon, 29 Jul 2002 16:30:35 +0000 |
| Subject: | Re: Disturbing parsing problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110210@lists.php.net to get a copy of this message | ||
On Mon, Jul 29, 2002 at 12:19:50PM -0400, cteubner@ncw-av.com wrote:
>
> if (){
> do {
> if (){
> while () {}
> if () ;
> else if ();
> else ;
> }
I don't like one line if statements. Perhaps there's a problem in there.
Makes things harder to see. I'd write it:
while () {}
if () {
} elseif () {
}else {
}
> if () {}
> if () {
> if {
Does your code have the () between the if and {?
> }
> // }
> if () {
> if {
Does your code have the () between the if and {?
> }
> // }
> } while ();
> if() {} //(4x)
> }
Also, your problem could be arising because of some unnoticed (, ), { or }
in a command between your control statements.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409