beginTrans(); $userdb = new UserDB(); $headline = $userdb->getHeadline($user->getUserId(), $trans->getPDO()); $location = $user->getLocation(); if (isset($_SESSION['tmpTags'])) { $tags = $_SESSION['tmpTags']; unset($_SESSION['tmpTags']); } else $tags = implode(', ', $userdb->getUserInterestTags($user->getUserId(), $trans->getPDO())); if (isset($_SESSION['tmpDescription'])) { $description = $_SESSION['tmpDescription']; unset($_SESSION['tmpDescription']); } else { if ($details = $userdb->getProfileDetails($user->getUserId(), $trans->getPDO())) $description = $details->getDescription(); } $trans->commit(); $trans->disconnect(); ?>
ERROR! Sorry, there was a problem with your interest tags. Please make sure you use only alphanumeric characters (no special symbols).
'; break; case 3: echo 'ERROR! Sorry, there was a problem with your description. Please make sure it is at least 200 characters long.
'; break; } } else { switch ($uswitch) { case 1: echo 'UPDATE: Your location has been updated. If there is anything else you want to change, go right ahead.
'; break; case 2: echo 'UPDATE: Your interest tags have been updated. If there is anything else you want to change, go right ahead.
'; break; case 3: echo 'UPDATE: Your description has been updated. If there is anything else you want to change, go right ahead.
'; break; case 4: echo 'UPDATE: Your profile details have been updated. If there is anything else you want to change, go right ahead.
'; break; default: echo 'From here you can make any changes you like to your profile. Just follow the instructions below.
'; } } ?>