Results 1 to 4 of 4

Thread: I've never seen this error before...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Posts
    296

    I've never seen this error before...

    Parse error: parse error, unexpected T_DEFAULT in /home/djstop/public_html/test/phatfx.php on line 94


    Please help. I double checked my code and everything is right.
    Kevin Carpenter
    Currently Working in the CAOS (CA Operating System) Group

  2. #2
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    post a chunck of code, that is around and including that line.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Posts
    296
    PHP Code:
    switch ($action) {

        case Default : 
    Kevin Carpenter
    Currently Working in the CAOS (CA Operating System) Group

  4. #4
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    PHP Code:
    switch ($action) {

        case Default : 
    the default is not to have a case on it.

    PHP Code:
    switch ($action) {

    case 
    something:  break;

    case 
    something else: break;

    default:

    if $action doesn't equal those 2 cases then it will go to the default.

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