View Single Post
Old 12-24-2005, 10:31 PM  
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