Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

writing if statements

Explorer ,
Jan 16, 2007 Jan 16, 2007
I keep getting an error with this code, maybe someone can help.
if ($group == "admin") {
$url = "web address"
}elseif ($group == "league") {
$url = "web address"
}else{
$url = "web address"
}
TOPICS
Server side applications
297
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 16, 2007 Jan 16, 2007
On Tue, 16 Jan 2007 16:53:00 +0000 (UTC), "justin wendorf"
<webforumsuser@macromedia.com> wrote:

>I keep getting an error with this code, maybe someone can help.
>if ($group == "admin") {
>$url = "web address"
>}elseif ($group == "league") {
>$url = "web address"
>}else{
>$url = "web address"
>}

You're missing semi-colons after the $url = lines.
--
Steve
steve at flyingtigerwebdesign dot com
Translate
LEGEND ,
Jan 16, 2007 Jan 16, 2007
What does the error say?


--
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

"justin wendorf" <webforumsuser@macromedia.com> wrote in message
news:eoivtc$6r$1@forums.macromedia.com...
>I keep getting an error with this code, maybe someone can help.
> if ($group == "admin") {
> $url = "web address"
> }elseif ($group == "league") {
> $url = "web address"
> }else{
> $url = "web address"
> }


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 16, 2007 Jan 16, 2007
LATEST
On Tue, 16 Jan 2007 16:53:00 +0000 (UTC), "justin wendorf"
<webforumsuser@macromedia.com> wrote:

>I keep getting an error with this code, maybe someone can help.
>if ($group == "admin") {
>$url = "web address"
>}elseif ($group == "league") {
>$url = "web address"
>}else{
>$url = "web address"
>}

You're missing semi-colons after the $url = lines.
--
Steve
steve at flyingtigerwebdesign dot com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines