"Tim Ward" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> is okay (but still doesn't work) although I have noticed that you seem to
> need to code-block single statements in if ... else constructs
> i.e
> if (1==1) echo("fred") else echo("bill"):
> should work but doesn't.
>

if (1==1) echo("fred"); else echo("bill"):
----------------------^

You need to have a semicolon before the else.

 - Daniel Grace <http://dewin.oldbattery.com/>
--
  "Space may be the final frontier but its made in a Hollywood basement."
    - Red Hot Chili Peppers - Californication




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to