![]() |
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), |
you have an error in your syntax.
an unexpected ; try getting rid of ";" |
Maybe it's reading the semicolon at the end of & as the end of line.
|
no shit sherlock....
but thats not the answer |
try changing this:
$board_config['agreed_val']&refer_id=$refer_id to this: $board_config['agreed_val']."&refer_id=" .$refer_id |
Quote:
|
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), |
Why? Its still going to find the ; isnt it? Also id guess that is the answer.
|
Quote:
"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. |
Quote:
Thanks a bunch |
Quote:
|
Quote:
|
Quote:
|
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. |
Quote:
|
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. :)
|
| All times are GMT -7. The time now is 04:52 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123