Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-23-2007, 05:08 PM   #1
dropped9
Registered User
 
dropped9's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Your moms box
Posts: 26,727
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),
dropped9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:10 PM   #2
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
you have an error in your syntax.

an unexpected ;

try getting rid of ";"
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

Last edited by 2012; 03-23-2007 at 05:11 PM.. Reason: not being a smartass
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:11 PM   #3
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
Maybe it's reading the semicolon at the end of & as the end of line.
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:11 PM   #4
dropped9
Registered User
 
dropped9's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Your moms box
Posts: 26,727
no shit sherlock....

but thats not the answer
dropped9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:11 PM   #5
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
try changing this:

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

to this:

$board_config['agreed_val']."&refer_id=" .$refer_id
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:13 PM   #6
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
Quote:
Originally Posted by ssp View Post
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
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:14 PM   #7
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
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),
__________________
Programmer
ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com

Last edited by naitirps; 03-23-2007 at 05:15 PM..
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:14 PM   #8
marcjacob
Confirmed User
 
marcjacob's Avatar
 
Join Date: Jun 2003
Location: England
Posts: 1,063
Why? Its still going to find the ; isnt it? Also id guess that is the answer.
marcjacob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:14 PM   #9
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by Headless View Post
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.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:16 PM   #10
dropped9
Registered User
 
dropped9's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Your moms box
Posts: 26,727
Quote:
Originally Posted by ssp View Post
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:17 PM   #11
dropped9
Registered User
 
dropped9's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Your moms box
Posts: 26,727
Quote:
Originally Posted by ssp View Post
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?
dropped9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:18 PM   #12
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
Quote:
Originally Posted by TheDoc View Post
Maybe it's reading the semicolon at the end of & as the end of line.
thats obviously not the answer go fuck yourself
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

Last edited by 2012; 03-23-2007 at 05:18 PM.. Reason: D'oh
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:18 PM   #13
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
Quote:
Originally Posted by rowan View Post
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
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:20 PM   #14
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
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.
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:30 PM   #15
dropped9
Registered User
 
dropped9's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: Your moms box
Posts: 26,727
Quote:
Originally Posted by ssp View Post
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?
dropped9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-23-2007, 05:55 PM   #16
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
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.
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.