Date: 03/20/07 (PHP Community) Keywords: php I'm working on transferring my game over to Smarty and have been coming across a multitude of problems (mostly old/deprecated code). This is the latest parse error that I can't figure out.
Any help is always appreciated $verifylogin = "yes"; include("header.php"); include("include/list_arrays.php"); // Get some information on their account. $sql = "SELECT * FROM ".$_MB->db_name.".accounts WHERE id = '".$_SESSION["account_id"]."'"; $res = mysql_query($sql, $_MB->connection) or die(mysql_error()); $row = mysql_fetch_assoc($res); $account_name = $row["name"]; $account_email = $row["email"]; $account_password = $row["password"]; $account_bday = $row["birth_day"]; $account_bmonth = $list["month"][$row["birth_month"]]; $account_byear = $row["birth_year"]; $user_aim = $row["aim"]; $user_icq = $row["icq"]; $user_msn = $row["msn"]; $user_yahoo = $row["yahoo"]; if ($_POST["chgpassword"]) { $currentpassword = $_MB->removeoddchars($_POST["currentpass $newpassword = $_MB->removeoddchars($_POST["newpassword" $retypepassword = $_MB->removeoddchars($_POST["retypepassw $newpasslength = strlen($newpassword); $md5currentpassword = md5($currentpassword); $md5newpassword = md5($newpassword); if (!$currentpassword || $currentpassword == '') $_MB->redirectuser("account_options.p if (!$newpassword || $newpassword == '') $_MB->redirectuser("account_options.p if (!$retypepassword || $retypepassword == '') $_MB->redirectuser("account_options.p if ($newpasslength < 5) $_MB->redirectuser("account_options.p if ($newpassword != $retypepassword) $_MB->redirectuser("account_options.p if ($md5currentpassword != $account_password) $_MB->redirectuser("account_options.p $sql = "UPDATE ".$_MB->db_name.".accounts SET password = '".$md5newpassword."' WHERE id = '".$_SESSION["account_id"]."'"; mysql_query($sql, $_MB->connection) or die(mysql_error()); $_MB->redirectuser("account_options.p } if ($_POST["chgprotocols"]) { $user_aim = $_MB->removeoddchars($_POST["useraim"]); $user_icq = $_MB->removeoddchars($_POST["usericq"]); $user_msn = $_MB->removeoddchars($_POST["usermsn"]); $user_yahoo = $_MB->removeoddchars($_POST["useryahoo"] $sql = "UPDATE $dbname.accounts SET aim = '".$useraim."', icq = '".$usericq."', msn = '".$userms."', yahoo = '".$useryahoo."' WHERE id = '".$_SESSION["account_id"]."'"; mysql_query($sql, $_MB->connection) or die(mysql_error()); $_MB->redirectuser("account_options.p } // Allow for multiple instances of resultmessage(). if ($_SESSION["msg"] == "You have successful changed your messaging protocols.") $multipleinstance = "messaging"; else $multipleinstance = "password"; ?>
include("footer.php"); ?>
|