Re: Newbie "If" question
| From: | Michael Lewis | Date: | Fri, 09 May 2003 14:39:33 +0000 |
| Subject: | Re: Newbie "If" question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147027@lists.php.net to get a copy of this message | ||
The syntax of the IF statement is:
if (expression) {
do something;
}
else {
do something else;
}
or single line: if (expression) { statement; }
----- Original Message -----
From: "Dani Matielo" <dmatielo@uol.com.br>
To: <php-general@lists.php.net>
Sent: Friday, May 09, 2003 10:26 AM
Subject: [PHP] Newbie "If" question
> Hello,
>
> I am having problems with this string, it returns a "parse error" and I
> can't find it... I appreciate any help. Thanx. :)
>
> <?
>
> if ($permissao) {
> if ($permissao == 8) include ("criar_editoria.php");
> else echo $permissao;
> };
> else echo "What do you want to do?";
>
> ?>
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.476 / Virus Database: 273 - Release Date: 24/4/2003
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>