RE: [PHP] Syntax
| From: | Jack Dempsey | Date: | Thu, 02 Aug 2001 15:16:58 +0000 |
| Subject: | RE: [PHP] Syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60923@lists.php.net to get a copy of this message | ||
I'm almost positive there's no reason the first should work while the
second fails...can you post what you've done...it's probably a typo...
jack
-----Original Message-----
From: BRACK [mailto:brak@nettaxi.com]
Sent: Thursday, August 02, 2001 11:10 AM
To: php-general@lists.php.net
Subject: [PHP] Syntax
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