SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot The Big Show's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Conditionals in one statement set

    How do you have multiple conditionals in one set of statements, for instance if I want:

    Statement:

    if(){}
    if(){}
    else{}

  2. #2
    lean mean coding machine cosmo's Avatar
    Join Date
    Aug 2001
    Location
    the cosmos
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It should be:

    PHP Code:
    if(..condition..){
    ....
    } elseif (.
    .2nd condition..){
    ....
    } elseif (.
    .3rd condition..){
    ....

    and so on.
    Luthfur R. - Web Developer
    PHP Lite.com - Professional PHP Scripts and Web Applications
    Calendar Express 2 - Web Based Calendar and Event Publishing System


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •