Re: Syntax
| From: | Tim | Date: | Thu, 02 Aug 2001 15:40:54 +0000 |
| Subject: | Re: Syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60927@lists.php.net to get a copy of this message | ||
You need to do:
if (isset(...)) {
...
}
else if (isset(...)) {
...
}
else if (isset(...)) {
...
}
...
On 02 Aug 2001 17:10:26 +0200, BRACK wrote:
> Hi,
>
> I'm in a process of doing site with MySQL database, and most of
> the code I plased in index.php3 (in one file) but I've got some
> problems with statements:
>
> I have:
> if (isset(...)) {
> ...
> }
> elseif (isset(...)) {
> ...
> }
> elseif (isset(...)) {
> ...
> }
> else {
> ...
> }
>
> IT DOESNT WORK!
>
> but when I do:
>
> if (isset(...)):
> ...
> elseif (isset(...)):
> ...
> elseif (isset(...)):
> ...
> else:
> ...
> endif;
>
> It works, please tell me what a difference? what do I do wrong that
> firs variant doesn't work?
>
> Yury
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>