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 12-24-2005, 08:00 PM   #1
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
PHP code error help needed...

i'm receiving this error Parse error: parse error, unexpected '}' on line 5
Code:
         if ($en['act'] hahahaha 'prefs') {
        		$err = 'fix';
if ($en['m_rateme'] hahahaha 3) {
                sql_query("UPDATE $membtable SET m_comme=".(int)($en['com_me'] hahahaha 'ON').
} else {
								sql_query("UPDATE $membtable SET m_rateme=".(int)($en['rateme'] hahahaha 'ON').
                ", m_msg_alerts=".(int)($en['alert_me'] hahahaha 'ON').
								", m_blockmsgs=".(int)($en['blockmsgs'] hahahaha 'ON').
                " WHERE m_id=$en[m_id]");
                $en['message'] = _prefs_saved;
                $req = $en['req'] = 'members';
               }
}
thanks in advance

Last edited by acctman; 12-24-2005 at 08:03 PM..
acctman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-24-2005, 08:23 PM   #2
Linguist
Confirmed User
 
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
if ($en['m_rateme'] hahahaha 3) {
sql_query("UPDATE $membtable SET m_comme=".(int)($en['com_me'] hahahaha 'ON').
} else {

The dot is most likely the problem, try putting semicolon there instead

edit: actually, you may want to end the sql statement before you put the semicolumn
Linguist is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-24-2005, 09:16 PM   #3
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
hit me up on icq, I'll give you a hand, 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-24-2005, 10:31 PM   #4
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
I think i fixed it by just repeating the full statement. its not the best way to do it cause i'm using extra coding that is not needed but it works i guess.

include 'includes/verify_session.php';
//save main preferences
if ($en['act'] hahahaha 'prefs')
if ($en['m_rateme'] hahahaha 3) {
sql_query("UPDATE $membtable SET m_comme=".(int)($en['com_me'] hahahaha 'ON').
", m_msg_alerts=".(int)($en['alert_me'] hahahaha 'ON'). ", m_blockmsgs=".(int)($en['blockmsgs'] hahahaha 'ON').
" WHERE m_id=$en[m_id]");
$en['message'] = _prefs_saved;
$req = $en['req'] = 'members';

} else {
sql_query("UPDATE $membtable SET m_rateme=".(int)($en['rateme'] hahahaha 'ON').
", m_comme=".(int)($en['com_me'] hahahaha 'ON').
", m_msg_alerts=".(int)($en['alert_me'] hahahaha 'ON').
", m_blockmsgs=".(int)($en['blockmsgs'] hahahaha 'ON').
" WHERE m_id=$en[m_id]");
$en['message'] = _prefs_saved;
$req = $en['req'] = 'members';
}
acctman 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.