session_start(); if (!session_is_registered("LLC")) { // if session check fails, invoke error handler header("Location: /error.php?e=1"); exit(); } else { $user = $_SESSION['UNAME']; $fname = $_POST["firstname"]; $lname = $_POST["lastname"]; $title = $_POST["title"]; $ext = $_POST["extension"]; $email = $_POST["email"]; $home = $_POST["home"]; $cell = $_POST["cell"]; $bday = $_POST["bday"]; list ($month, $day, $year) = split ('/', $bday); if (checkdate($month, $day, $year)) {$birthday = $year.'-'.$month.'-'.$day;} else {$birthday = '0000-00-00';} $hobbies = $_POST["hobbies"]; include(dirname(__FILE__)."/llc/includes/dbconfig.php"); $connection = mysql_connect($db_host, $db_user, $db_pass) or die ("Unable to connect!"); mysql_select_db($db_name); $query = "update userlist set FirstName = '$fname', LastName = '$lname', Title = '$title', Extension = '$ext', Email = '$email', Home='$home', Cell='$cell', Birthday='$birthday', Hobbies='$hobbies' where UserName = '$user'"; mysql_query($query, $connection) or die ("Error in query: $query. " . mysql_error()); if (mysql_affected_rows() != 1) { header("Location: /error.php?e=7"); exit(); } } ?>
Staff Login -- My Account |
Changed Personal InformationYour personal information has been changed. This has not changed your password. Please go back to change your password. |