Results 1 to 5 of 5

Thread: Can you nest if shorthand? [Resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Can you nest if shorthand? [Resolved]

    I tried this and I'm getting a parse error:
    PHP Code:
    <?php 
    if(date(n)<4?1:if(date(n)<7?2:if(date(n)<10?3:4)));?>
    I'm just trying to pick what quarter you're in based on what month it is.
    Last edited by ober0330; Jan 8th, 2004 at 12:26 PM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

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



Click Here to Expand Forum to Full Width