GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any php peeps here? I have an error and can't figure it out. (https://gfy.com/showthread.php?t=717657)

dropped9 03-23-2007 05:08 PM

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 03-23-2007 05:10 PM

you have an error in your syntax.

an unexpected ;

try getting rid of ";"

TheDoc 03-23-2007 05:11 PM

Maybe it's reading the semicolon at the end of & as the end of line.

dropped9 03-23-2007 05:11 PM

no shit sherlock....

but thats not the answer

ssp 03-23-2007 05:11 PM

try changing this:

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

to this:

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

Varius 03-23-2007 05:13 PM

Quote:

Originally Posted by ssp (Post 12138696)
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.

naitirps 03-23-2007 05:14 PM

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),

marcjacob 03-23-2007 05:14 PM

Why? Its still going to find the ; isnt it? Also id guess that is the answer.

rowan 03-23-2007 05:14 PM

Quote:

Originally Posted by Headless (Post 12138686)
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.

dropped9 03-23-2007 05:16 PM

Quote:

Originally Posted by ssp (Post 12138696)
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

dropped9 03-23-2007 05:17 PM

Quote:

Originally Posted by ssp (Post 12138696)
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?

2012 03-23-2007 05:18 PM

Quote:

Originally Posted by TheDoc (Post 12138694)
Maybe it's reading the semicolon at the end of & as the end of line.

thats obviously not the answer go fuck yourself :1orglaugh

naitirps 03-23-2007 05:18 PM

Quote:

Originally Posted by rowan (Post 12138708)
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.

ssp 03-23-2007 05:20 PM

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.

dropped9 03-23-2007 05:30 PM

Quote:

Originally Posted by ssp (Post 12138737)
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?

ssp 03-23-2007 05:55 PM

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