<body id="mainBody" class="shadowBody"> <?php displayBanner(); $conn = new dbAccess($debug); $residentInfo = array(); $saveUser = !empty($_GET['s']) ? true : false; if ($saveUser) { if (($rc = $conn->saveResidentInfo()) !== GOOD_RC) { echo "Error occurred saving resident information<br />"; } else { $userId = $_POST['resId']; } } else { $userId = !empty($_GET['i']) ? $_GET['i'] : "0"; } if (($rc = $conn->getResidentInfo($userId, &$residentInfo)) !== GOOD_RC) { echo "Error occurred retrieving resident information<br />"; } else { if ($debug) { echo "Retrieved resident information<br />"; var_dump($residentInfo); } $userName = $residentInfo['firstName']; if (!empty($residentInfo['middleInit'])) { $userName = $userName . " " . $residentInfo['middleInit']; } $userName = $userName . " " . $residentInfo['lastName']; $email = $residentInfo['email']; $birthDate = $residentInfo['birthDate']; $phone1 = $residentInfo['phone1']; $phone2 = $residentInfo['phone2'];