Sorry to double-post but this brought up something I didn't realize wasn't clear in my original post. When I say: if () ; I am using the one-line if/elseif/else syntax, which works like this:
if($foo) echo $bar; elseif($x) echo $y; else echo $z; This is a self-contained if statement, as in C, which needs no colon or braces. This is the first mentioned syntax for if() in the PHP documentation. However, just to be 100% sure, I used braces anyway and still suffered the same problem. I'm coding in Dreamweaver MX and all of the {}s appear the appropriate color, and seem to be in the appropriate places when I use the balance braces command. (ctrl+' for the uninitiated) Thanks, Colin Teubner -----Original Message----- From: Steve Edberg [mailto:[EMAIL PROTECTED]] I assume you mean if () : else if (): else : here (colon instead of semicolon)? AFAIK PHP doesn't allow the alternative syntax - http://php.he.net/manual/en/control-structures.alternative-syntax.php - with semicolons. Or do you really mean if () {} else if () {} else {} If you are using the alternative syntax, I recall several messages about people having problems nesting both forms of syntax. Try using all one style or the other. Lastly, quadruple check that you haven't accidentally quoted or double-quoted a { or ( or something that you THOUGHT was part of PHP code; syntax highlighting editors can definitely help here. -steve > if () {} > if () { > if { > } > // } > if () { > if { > } > // } > } while (); > if() {} //(4x) >} > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- +------------------------------------------------------------------------+ | Steve Edberg [EMAIL PROTECTED] | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http://pgfsun.ucdavis.edu/ | +------------------------------------------------------------------------+ | The end to politics as usual: | | The Monster Raving Loony Party (http://www.omrlp.com/) | +------------------------------------------------------------------------+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php