"; } if (isset($errors["last_name" ])) { echo $errors["last_name" ]."
"; } if (isset($errors["address_1" ])) { echo $errors["address_1" ]."
"; } if (isset($errors["city" ])) { echo $errors["city" ]."
"; } if (isset($errors["country" ])) { echo $errors["country" ]."
"; } if (isset($errors["zipcode" ])) { echo $errors["zipcode" ]."
"; } if (isset($errors["phone" ])) { echo $errors["phone" ]."
"; } if (isset($errors["birth_year" ])) { echo $errors["birth_year" ]."
"; } if (isset($errors["birth_month"])) { echo $errors["birth_month"]."
"; } if (isset($errors["birth_day" ])) { echo $errors["birth_day" ]."
"; } if (isset($errors["gender" ])) { echo $errors["gender" ]."
"; } unset($_SESSION["errors"]); } if (!isset($_SESSION["id"])) { $_SESSION["error"] = "The action requested is not allowed. Please log in or sign up."; header("Location: Login.html"); exit(); } $mysqli = mysqli_connect("localhost", "skillini_Ann", "bbalsk94544", "skillini_hatcreek"); if (mysqli_connect_errno()) { echo "Your request cannot be processed at this time. Please try again later."; exit(); } else { $id = $_SESSION["id"]; $sql = "SELECT * FROM users WHERE id = '$id'"; $res = mysqli_query($mysqli, $sql); if ($res) { if (mysqli_num_rows($res) == 1) { $row = mysqli_fetch_array($res); $first_name = $row['first_name' ]; $last_name = $row['last_name' ]; $address_1 = $row['address_1' ]; $address_2 = $row['address_2' ]; $city = $row['city' ]; $state = $row['state' ]; $other_state = $row['other_state']; $country = $row['country' ]; $zipcode = $row['zipcode' ]; $phone = $row['phone' ]; $birth_year = $row['birth_year' ]; $birth_month = $row['birth_month']; $birth_day = $row['birth_day' ]; $gender = $row['gender' ]; } else { echo "Your account could not be found."; } } mysqli_free_result($res); } mysqli_close($mysqli); ?> Account Info - Personal Info Update
Your Account Information
Personal Information Update * Indicates Required Field

"; echo ""; echo "
"; echo ""; echo ""; echo ""; echo "
".fieldError()."
"; echo ""; echo ""; } ?>
* First Name: " type="TEXT">
 
* Last Name: " type="TEXT">
 
* Street Address: " type="TEXT">
 
* Apt./Unit No.: " type="TEXT">
 
* City: " type="TEXT">
 
* Country:
 
* State/Province:
 
* If outside USA: " type="TEXT" />
 
 
* Zip Code: " type="TEXT">
 
* Phone Number: " type="TEXT">
 
* Date Of Birth
 
* Gender: