Any php peeps here? I have an error and can't figure it out.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dropped9
    Registered User
    • Jan 2001
    • 26727

    #1

    Any php peeps here? I have an error and can't figure it out.

    Parse error: syntax error, unexpected ';'

    wtf does this mean?

    it's on this line

    "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&refer _id=$refer_id&". $board_config['agreed_var'] ."=".$board_config['agreed_val']&refer_id=$refer_id),
  • 2012
    So Fucking What
    • Jul 2006
    • 17189

    #2
    you have an error in your syntax.

    an unexpected ;

    try getting rid of ";"
    Last edited by 2012; 03-23-2007, 04:11 PM. Reason: not being a smartass
    best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

    Comment

    • TheDoc
      Too lazy to set a custom title
      • Jul 2001
      • 13827

      #3
      Maybe it's reading the semicolon at the end of & as the end of line.
      ~TheDoc - ICQ7765825
      It's all disambiguation

      Comment

      • Headless
        Registered User
        • Jan 2001
        • 26727

        #4
        no shit sherlock....

        but thats not the answer

        Comment

        • ssp
          Confirmed User
          • Jan 2005
          • 7990

          #5
          try changing this:

          $board_config['agreed_val']&refer_id=$refer_id

          to this:

          $board_config['agreed_val']."&refer_id=" .$refer_id

          Comment

          • Varius
            Confirmed User
            • Jun 2004
            • 6890

            #6
            Originally posted by ssp
            try changing this:

            $board_config['agreed_val']&refer_id=$refer_id

            to this:

            $board_config['agreed_val']."&refer_id=" .$refer_id
            That is correct, that should fix it.
            Skype variuscr - Email varius AT gmail

            Comment

            • naitirps
              Confirmed User
              • May 2004
              • 761

              #7
              try this.

              "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&refer _id=".$refer_id."&".$board_config['agreed_var']."=".$board_config['agreed_val']."&refer_id=".$refer_id),
              Last edited by naitirps; 03-23-2007, 04:15 PM.
              Programmer
              ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

              Comment

              • marcjacob
                Confirmed User
                • Jun 2003
                • 1063

                #8
                Why? Its still going to find the ; isnt it? Also id guess that is the answer.
                Free Site Express GFY Launch Offer
                Gay Demo Video - Straight Demo Video
                Icq: 191127710 Email: [email protected]

                Comment

                • rowan
                  Too lazy to set a custom title
                  • Mar 2002
                  • 17393

                  #9
                  Originally posted by Headless
                  Parse error: syntax error, unexpected ';'

                  wtf does this mean?

                  it's on this line

                  "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&refer _id=$refer_id&". $board_config['agreed_var'] ."=".$board_config['agreed_val']&refer_id=$refer_id),
                  Try this

                  "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&refer _id=$refer_id&". $board_config['agreed_var'] ."=".$board_config['agreed_val']."&refer_id=$refer_id"),

                  I presume the statement is continued on the next line, if not then delete the final , and replace it with a ;

                  Where did you get this code? As you've posted it I don't think it would have ever worked.

                  Comment

                  • Headless
                    Registered User
                    • Jan 2001
                    • 26727

                    #10
                    Originally posted by ssp
                    try changing this:

                    $board_config['agreed_val']&refer_id=$refer_id

                    to this:

                    $board_config['agreed_val']."&refer_id=" .$refer_id
                    fixed!!!!!!


                    Thanks a bunch

                    Comment

                    • Headless
                      Registered User
                      • Jan 2001
                      • 26727

                      #11
                      Originally posted by ssp
                      try changing this:

                      $board_config['agreed_val']&refer_id=$refer_id

                      to this:

                      $board_config['agreed_val']."&refer_id=" .$refer_id
                      with the refer_id in the fix, it will still populate that refer id right?

                      Comment

                      • 2012
                        So Fucking What
                        • Jul 2006
                        • 17189

                        #12
                        Originally posted by TheDoc
                        Maybe it's reading the semicolon at the end of & as the end of line.
                        thats obviously not the answer go fuck yourself
                        Last edited by 2012; 03-23-2007, 04:18 PM. Reason: D'oh
                        best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

                        Comment

                        • naitirps
                          Confirmed User
                          • May 2004
                          • 761

                          #13
                          Originally posted by rowan
                          Try this

                          "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&refer _id=$refer_id&". $board_config['agreed_var'] ."=".$board_config['agreed_val']."&refer_id=$refer_id"),

                          I presume the statement is continued on the next line, if not then delete the final , and replace it with a ;

                          Where did you get this code? As you've posted it I don't think it would have ever worked.
                          it's from phpbb.
                          Programmer
                          ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

                          Comment

                          • ssp
                            Confirmed User
                            • Jan 2005
                            • 7990

                            #14
                            Yes.

                            What you should do is separate your strings (anything between "", i.e: "&refer_id=") from your variables (anything with a $ sign, i.e: $refer_id).

                            You can join them together with '.' (ignore the single quotations). Then you should be fine.

                            Comment

                            • Headless
                              Registered User
                              • Jan 2001
                              • 26727

                              #15
                              Originally posted by ssp
                              Yes.

                              What you should do is separate your strings (anything between "", i.e: "&refer_id=") from your variables (anything with a $ sign, i.e: $refer_id).

                              You can join them together with '.' (ignore the single quotations). Then you should be fine.
                              Are you sure? the referal_id should be listed in the html link when going to the php url with profile.php?mode=register&refer_id=294 in it right?

                              Comment

                              • ssp
                                Confirmed User
                                • Jan 2005
                                • 7990

                                #16
                                It could be that your script handles this differently. In that case copy paste rowans selection, which is near the same to mine, only it has the last $refer_id in between "" quotations. Good luck.

                                Comment

                                Working...