function GetViewProfileInfo($username) { $profileRow = GetProfileRow($username); $GLOBALS['firstname'] = $profileRow['firstname']; $GLOBALS['lastname'] = $profileRow['lastname']; $GLOBALS['city'] = $profileRow['city']; $GLOBALS['state'] = $profileRow['state']; $GLOBALS['purchaseprice'] = $profileRow['purchaseprice']; $GLOBALS['purchasedate'] = date("m/d/Y", $profileRow['purchasedate']); $GLOBALS['mortgagebalance'] = $profileRow['mortgagebalance']; $GLOBALS['secondmortgage'] = $profileRow['secondmortgage']; $GLOBALS['housephoto'] = $profileRow['housephoto']; $GLOBALS['twittername'] = $profileRow['twittername']; }
function GetProfileInfo() { if ($_SESSION['loggedIn'] == 1) { $profileRow = GetProfileRow($_SESSION['user']); $GLOBALS['firstname'] = $profileRow['firstname']; $GLOBALS['lastname'] = $profileRow['lastname']; $GLOBALS['city'] = $profileRow['city']; $GLOBALS['state'] = $profileRow['state']; $GLOBALS['purchaseprice'] = $profileRow['purchaseprice']; $GLOBALS['purchasedate'] = date("m/d/Y", $profileRow['purchasedate']); $GLOBALS['mortgagebalance'] = $profileRow['mortgagebalance']; $GLOBALS['housephoto'] = $profileRow['housephoto']; $GLOBALS['twittername'] = $profileRow['twittername']; $GLOBALS['secondmortgage'] = $profileRow['secondmortgage']; } }
</div> <div class="contributor"> <?php $profileRow = GetProfileRow('meghan_e'); $firstname = $profileRow['firstname']; $username = $profileRow['username']; $housephoto = $profileRow['housephoto']; print '<a href="viewprofile.php?user='******'">' . $firstname . '</a><br />'; print '<a href="viewprofile.php?user='******'"><img src="' . $housephoto . '" width="250"/></a>'; ?> </div> <div class="contributor"> <?php $profileRow = GetProfileRow('nosretap'); $firstname = $profileRow['firstname']; $username = $profileRow['username']; $housephoto = $profileRow['housephoto']; print '<a href="viewprofile.php?user='******'">' . $firstname . '</a><br />'; print '<a href="viewprofile.php?user='******'"><img src="' . $housephoto . '" width="250"/></a>'; ?> </div> </div> <div> <span style="font-size:small;"><p>Welcome to the refinance timeline. This is the ongoing timeline of three regular people, connected only by their love of <b>NPR's <a href="http://npr.org/money">Planet Money</a></b>, who are trying to refinance their mortgage. Mortgage rates are low, but credit is tight. If they're lucky, they'll manage to save some money on their home.</P>